/*
 * 海外採用ナビ Core - フロントスタイル / サイト共通デザインルール
 * ------------------------------------------------------------------
 * ■ デザインルールの正本(Single Source of Truth)
 *   このファイルの :root トークンがサイト全体の配色・角丸・影・書体の基準。
 *   個別の色を直接指定せず、必ず下記トークンを参照すること。
 *
 * ■ ブランドカラー
 *   ロゴ「海外採用ナビ」の基幹色 #0061CD を起点に全色を導出。
 *   ブルー=信頼/主役、ゴールド=PR(広告)表示の意図的な区別 のみ例外。
 *
 * ■ 書体
 *   見出し・ブランド表示: Zen Maru Gothic(ロゴの角丸ゴシックに同調)
 *   本文: Noto Sans JP
 *
 * ■ かたち
 *   ボタン=ピル型(丸み)+影でポップに。カード/表=やや大きめの角丸。
 *
 * テーマに依存せず、すべて .aih- プレフィックス + 本文見出し基底レイヤーで分離。
 */

:root{
  /* --- ブランド(ロゴ #0061CD 基準) --- */
  --aih-brand:#0061CD;        /* ロゴ基幹色:CTA・リンク・データ強調の主役 */
  --aih-brand-dark:#004FA8;   /* ホバー/アクティブ */
  --aih-brand-soft:#E8F1FD;   /* 淡いブルー背景:H2・表ヘッダ・カード見出し等 */

  /* --- テキスト/罫線/背景 --- */
  --aih-ink:#0C2747;          /* 見出し・本文濃色(ブランド寄りのネイビー) */
  --aih-sub:#5A6B82;          /* サブテキスト */
  --aih-line:#D8E3F1;         /* 罫線(ブルー寄り) */
  --aih-bg-soft:var(--aih-brand-soft); /* 背景ソフト(=ブランドソフト) */

  /* --- 役割エイリアス(後方互換) --- */
  --aih-accent:var(--aih-brand);
  --aih-accent-dark:var(--aih-brand-dark);
  --aih-data:var(--aih-brand);   /* データ強調=ブランドブルーに統一 */

  /* --- PR(広告)表記:法的表示のため意図的に区別 --- */
  --aih-pr:#8A6D1F;
  --aih-pr-bg:#FBF6E8;

  /* --- かたち/影/書体 --- */
  --aih-radius:10px;             /* カード・表・パネル */
  --aih-radius-pill:999px;       /* ボタン(丸み・ポップ) */
  --aih-shadow:0 2px 10px rgba(12,39,71,.07);
  --aih-shadow-btn:0 3px 10px rgba(0,97,205,.28);
  --aih-font-head:"Zen Maru Gothic","Noto Sans JP",sans-serif;
  --aih-font-body:"Noto Sans JP",sans-serif;

  /* --- 記事レイアウト(サイボウズ式風) --- */
  --aih-content-w:680px;       /* 本文1カラムの最大幅(狭く・読みやすく) */
  --aih-text:#333;            /* 本文インク(やや柔らかい黒) */
}

/* ============================================================
   記事レイアウト(サイボウズ式風)— 本文の基底レイヤー
   テーマ任せだった 幅 / 余白 / 本文 / H2・H3 / アイキャッチ を
   サイト共通ルールとして統一(主要テーマの本文ラッパに対応)。
   ============================================================ */

/* 本文1カラム:狭い幅で中央寄せ・読みやすい行間 */
.entry-content,.article-body,.post_content,
.wp-block-post-content,.single-content{
  max-width:var(--aih-content-w);
  margin-left:auto !important;
  margin-right:auto !important;
  float:none !important;       /* サイドバー型テーマで左寄せにならないように */
  font-family:var(--aih-font-body);
  font-size:1.0625rem;   /* ≒17px */
  line-height:1.95;
  color:var(--aih-text);
}
.entry-content p,.article-body p,.post_content p,
.wp-block-post-content p,.single-content p{margin:0 0 1.7em}

/* 見出しのアンカー位置(固定ヘッダ・目次ジャンプ用の余白) */
.entry-content :is(h2,h3),.article-body :is(h2,h3),
.post_content :is(h2,h3),.wp-block-post-content :is(h2,h3),
.single-content :is(h2,h3){scroll-margin-top:88px}

/* H2:青の左バー + アンダーバー(下線)の見出し */
.entry-content h2,.article-body h2,.post_content h2,
.wp-block-post-content h2,.single-content h2{
  font-family:var(--aih-font-head);
  font-weight:700;
  font-size:1.45rem;
  line-height:1.55;
  color:var(--aih-ink) !important;
  background:none !important;
  border:none !important;
  border-left:6px solid var(--aih-brand) !important;
  border-radius:0 !important;
  padding:2px 0 12px 14px !important;
  margin:2.6em 0 1em;
}

/* H3:青の左バー + 黒文字(下線なし)。H2と差別化 */
.entry-content h3,.article-body h3,.post_content h3,
.wp-block-post-content h3,.single-content h3{
  font-family:var(--aih-font-head);
  font-weight:700;
  font-size:1.18rem;
  line-height:1.55;
  color:#1A1A1A !important;
  background:none !important;
  border:none !important;
  border-left:5px solid var(--aih-brand) !important;
  border-radius:0 !important;
  padding:1px 0 1px 12px !important;
  margin:2.2em 0 .7em;
}

/* テーマが付与する見出し罫線を打ち消す。
   H2=上罫だけ消し下罫は残す / H3=上下とも消してH2と差別化。
   テーマCSS(後読み・!important)にも勝てるよう html body で高詳細度にする。 */
html body .entry-content h2,html body .article-body h2,html body .post_content h2,
html body .wp-block-post-content h2,html body .single-content h2{
  border-top:0 !important;
  border-bottom:3px solid var(--aih-brand) !important;   /* アンダーバー */
}
html body .entry-content h3,html body .article-body h3,html body .post_content h3,
html body .wp-block-post-content h3,html body .single-content h3{
  border-top:0 !important;border-bottom:0 !important;
}
/* 擬似要素で線を描くテーマ対策(H2の上線・H3の上下線を消す) */
html body .entry-content :is(h2,h3)::before,
html body .post_content :is(h2,h3)::before,
html body .single-content :is(h2,h3)::before,
html body .entry-content h3::after,
html body .post_content h3::after,
html body .single-content h3::after{
  border:0 !important;background:none !important;
}

/* 本文リンク */
.entry-content a,.article-body a,.post_content a{color:var(--aih-brand)}

/* アイキャッチ・本文画像:角丸+ソフトな影 */
.entry-content img,.article-body img,.post_content img{max-width:100%;height:auto;border-radius:var(--aih-radius)}
.wp-post-image,.eyecatch img,figure.eye-catch img,.entry-eyecatch img,.post-thumbnail img{
  border-radius:14px;box-shadow:var(--aih-shadow)
}

/* ============================================================
   目次(TOC)ボックス — [toc] ショートコードで使用
   ============================================================ */
.aih-toc{border:1px solid var(--aih-line);border-radius:var(--aih-radius);background:#fff;padding:18px 22px;margin:28px 0;font-size:.95rem;box-shadow:var(--aih-shadow)}
.aih-toc-h{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1rem;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.aih-toc-h::before{content:"";width:4px;height:1.1em;background:var(--aih-brand);border-radius:2px;display:inline-block}
.aih-toc ol{list-style:none;counter-reset:toc;margin:0;padding:0}
.aih-toc > ol > li{counter-increment:toc;padding:7px 0;border-top:1px solid var(--aih-line)}
.aih-toc > ol > li:first-child{border-top:none}
.aih-toc > ol > li > a::before{content:counter(toc) ". ";color:var(--aih-brand);font-weight:700}
.aih-toc a{color:var(--aih-ink);text-decoration:none;line-height:1.6}
.aih-toc a:hover{color:var(--aih-brand);text-decoration:underline}
.aih-toc ol ol{list-style:none;margin:6px 0 2px;padding:0 0 0 1.4em}
.aih-toc ol ol li{padding:3px 0}
.aih-toc ol ol a{color:var(--aih-sub);font-size:.9rem}
.aih-toc ol ol a::before{content:"– ";color:var(--aih-sub)}

/* PR表記 */
.aih-pr-notice{background:var(--aih-pr-bg);color:var(--aih-pr);font-size:.78rem;border-radius:var(--aih-radius);padding:10px 14px;margin:20px 0;line-height:1.7}
.aih-pr-notice a{color:var(--aih-pr)}

/* メタバッジ */
.aih-meta{display:flex;flex-wrap:wrap;gap:10px;font-size:.8rem;color:var(--aih-sub);margin:8px 0 24px}
.aih-badge{background:var(--aih-bg-soft);border:1px solid var(--aih-line);border-radius:999px;padding:2px 12px}

/* ボタン(丸み・ポップ) */
.aih-btn{display:inline-block;background:var(--aih-brand);color:#fff !important;text-decoration:none;font-family:var(--aih-font-head);font-weight:700;padding:14px 30px;border-radius:var(--aih-radius-pill);font-size:.95rem;box-shadow:var(--aih-shadow-btn);transition:transform .12s ease,background .15s,box-shadow .15s}
.aih-btn:hover{background:var(--aih-brand-dark);color:#fff;transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,97,205,.34)}
.aih-btn:active{transform:translateY(0);box-shadow:var(--aih-shadow-btn)}
.aih-sub-link{display:block;font-size:.8rem;margin-top:10px}

/* 比較表 */
.aih-table-scroll{overflow-x:auto;border:1px solid var(--aih-line);border-radius:var(--aih-radius);margin:16px 0 4px}
.aih-cmp{border-collapse:collapse;width:100%;min-width:640px;font-size:.85rem;margin:0}
.aih-cmp th,.aih-cmp td{padding:12px 14px;border-bottom:1px solid var(--aih-line);text-align:left;vertical-align:top;border-left:none;border-right:none}
.aih-cmp thead th{background:var(--aih-bg-soft);font-size:.78rem;color:var(--aih-sub);font-weight:700;white-space:nowrap}
.aih-cmp .aih-name{font-weight:700;white-space:nowrap}
.aih-cmp .aih-score{font-variant-numeric:tabular-nums;font-weight:700;color:var(--aih-data)}
.aih-note{font-size:.76rem;color:var(--aih-sub);margin:8px 0 24px}

/* 評価基準 */
.aih-criteria{background:var(--aih-bg-soft);border-radius:var(--aih-radius);padding:22px 24px;font-size:.88rem;margin:16px 0}
.aih-criteria ul{margin:8px 0 0 1.2em}

/* サービスカード */
.aih-card{border:1px solid var(--aih-line);border-radius:var(--aih-radius);margin:28px 0;overflow:hidden;background:#fff;box-shadow:var(--aih-shadow)}
.aih-card-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:18px 22px;background:var(--aih-bg-soft);border-bottom:1px solid var(--aih-line)}
.aih-rank{font-family:var(--aih-font-head);font-size:.8rem;color:var(--aih-sub)}
.aih-nm{font-family:var(--aih-font-head);font-size:1.2rem;font-weight:700;color:var(--aih-ink)}
.aih-total{font-variant-numeric:tabular-nums;font-weight:700;color:var(--aih-data);font-size:1.05rem;white-space:nowrap}
.aih-total-max{font-size:.75rem;color:var(--aih-sub)}
.aih-card-body{padding:20px 22px}
.aih-summary{font-size:.92rem}

/* スコア内訳バー(署名要素) */
.aih-scorebars{display:grid;grid-template-columns:9em 1fr 3.4em;gap:6px 10px;font-size:.78rem;align-items:center;margin:6px 0 18px}
.aih-bar{height:8px;background:var(--aih-line);border-radius:4px;overflow:hidden}
.aih-bar i{display:block;height:100%;background:var(--aih-data)}
.aih-v{font-variant-numeric:tabular-nums;color:var(--aih-sub);text-align:right}

/* 強み・弱み */
.aih-md{display:grid;grid-template-columns:1fr;gap:14px;margin:14px 0}
.aih-md > div{border:1px solid var(--aih-line);border-radius:var(--aih-radius);padding:16px 18px;font-size:.95rem;line-height:1.85}
.aih-md-h{font-family:var(--aih-font-head);font-weight:700;font-size:.92rem;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid var(--aih-line)}
.aih-md ul{margin:0 0 0 1.1em;padding:0}

/* 向き不向き */
.aih-suit{font-size:.85rem;background:var(--aih-bg-soft);border-radius:var(--aih-radius);padding:14px 16px;margin:14px 0;line-height:1.9}

/* CTA */
.aih-cta-box{text-align:center;padding:18px 0 6px}

/* 確認日 */
.aih-verified{font-size:.74rem;color:var(--aih-sub);text-align:right;padding:0 22px 14px}

/* FAQ */
.aih-faq{border:1px solid var(--aih-line);border-radius:var(--aih-radius);margin-bottom:10px;padding:0 18px;background:#fff}
.aih-faq summary{cursor:pointer;font-family:var(--aih-font-head);font-weight:700;font-size:.92rem;padding:14px 0;list-style:none}
.aih-faq summary::before{content:"Q. ";color:var(--aih-data)}
.aih-faq p{font-size:.88rem;padding-bottom:14px;margin:0}

/* 更新履歴 */
.aih-history{border-top:1px solid var(--aih-line);margin:12px 0;padding:0;font-size:.82rem}
.aih-history li{display:flex;gap:14px;padding:8px 0;border-bottom:1px solid var(--aih-line);list-style:none}
.aih-history time{white-space:nowrap;color:var(--aih-sub);font-variant-numeric:tabular-nums}

@media(max-width:560px){
  .aih-md{grid-template-columns:1fr}
  .aih-scorebars{grid-template-columns:7.5em 1fr 3em}
}
@media (prefers-reduced-motion: reduce){
  .aih-btn{transition:none}
  .aih-btn:hover{transform:none}
}

/* カテゴリー別インデックス(トップページ) */
.aih-catindex{margin:24px 0}
.aih-catindex-cat{margin:0 0 36px}
.aih-catindex-h{font-family:var(--aih-font-head);font-size:1.25rem;font-weight:700;color:var(--aih-ink);border-left:4px solid var(--aih-brand);padding-left:12px;margin:0 0 14px;line-height:1.4}
.aih-catindex-h a{color:var(--aih-ink);text-decoration:none}
.aih-catindex-h a:hover{color:var(--aih-brand)}
.aih-catindex-count{font-family:var(--aih-font-body);font-size:.72rem;font-weight:500;color:var(--aih-sub);margin-left:8px}
.aih-catindex-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:0 28px}
.aih-catindex-list li{border-bottom:1px solid var(--aih-line);padding:9px 0}
.aih-catindex-list a{color:var(--aih-data);text-decoration:none;font-size:.9rem;line-height:1.6}
.aih-catindex-list a:hover{text-decoration:underline}

/* === 現地の小話(トリビア):本文の見出し階層から切り離した独立コラム ===
 * ブルー基調の淡い囲み(本文と同系)。見出しは囲みの中。文字サイズは本文と同じ。
 * シャドウなし。アイコン=電球(=豆知識)。data-URIで全国共通配置。 */
:root{
  --aih-trivia-bg:#EAF2FD;       /* 淡いブルー背景 */
  --aih-trivia-accent:#0061CD;   /* アクセント=ブランドブルー */
  --aih-trivia-line:#C9DCF5;     /* 囲みの罫線(ブルー寄り) */
}
.aih-trivia{position:relative;margin:36px 0;padding:20px 24px 18px;background:var(--aih-trivia-bg);border:1px solid var(--aih-trivia-line);border-radius:var(--aih-radius)}
.aih-trivia-h{display:flex;align-items:center;gap:9px;margin:0 0 8px;font-family:var(--aih-font-head);font-weight:700;font-size:1.1rem;color:var(--aih-trivia-accent)}
.aih-trivia-h::before{content:"";flex:0 0 auto;width:24px;height:24px;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061CD' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18h6'/><path d='M10 21.5h4'/><path d='M15.1 14c.2-1 .7-1.8 1.4-2.5A4.7 4.7 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.2 1.5 1.4 2.5'/></svg>") center/contain no-repeat}
.aih-trivia p{margin:0;line-height:1.9}
.aih-trivia p + p{margin-top:1em}

/* === 重要ポイントのマーカーハイライト(サイボウズ式・全面塗り) ===
 * 文字の裏を全面塗りするブランドブルーのハイライト。
 * 濃さを変えたい場合は --aih-marker のalphaを調整する。 */
:root{
  --aih-marker:rgba(0,97,205,.16);          /* ブランドブルーの淡い全面ハイライト(重要ポイント) */
  --aih-marker-strong:rgba(0,97,205,.28);    /* さらに強調したい箇所(任意) */
}
.aih-marker{
  background:var(--aih-marker);             /* 文字の裏を全面塗り */
  font-weight:700;
  padding:.06em .12em;
  border-radius:3px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.aih-marker--strong{
  background:var(--aih-marker-strong);
}

/* ============================================================
   SWELL テーマ連携:アクセント色をブランドカラーへ統一
   SWELL の --color_main 系(既定 #04384c)がナビのアンダーバー
   (.c-gnav a::after)・ページネーション現在地・ウィジェット等の色源。
   ここをブランドブルーに上書きして全体を揃える。
   ============================================================ */
:root{
  --color_main:#0061CD !important;            /* メインアクセント=ブランド */
  --color_main_thin:rgba(0,97,205,.06) !important;
  --color_main_dark:#004FA8 !important;
  --color_htag:#0C2747 !important;            /* 見出し色=ブランドインク */
  --color_link:#0061CD !important;            /* リンク=ブランド */
}

/* ページネーション:角ばり→丸み + ブランド色に統一 */
.c-pagination{gap:8px}
.c-pagination .page-numbers{
  border-radius:var(--aih-radius) !important;  /* 四角→丸み */
}
.c-pagination .page-numbers.current,
.c-pagination a.page-numbers:hover,
.c-pagination a.page-numbers:focus{
  background-color:var(--aih-brand) !important;
  border-color:var(--aih-brand) !important;
  color:#fff !important;
}
/* ページトップボタンの丸み(SWELL既定が角ばる場合の保険) */
#pagetop,.p-pageTop a{border-radius:50% !important}

/* ============================================================
   カテゴリ(CPTアーカイブ)カード:アイキャッチ+カテゴリピル+
   タイトル+更新日 のみ(抜粋文は非表示)。参考デザインに準拠。
   ============================================================ */
.archive .p-postList__excerpt{ display:none !important; }

/* カテゴリのピル(タブ)。CPTアーカイブは全カード同一カテゴリのため
   body_wrap の post-type-archive-* で content を出し分ける。 */
.archive .p-postList__body{ position:relative; }
.archive .p-postList__body::before{
  content:none;                      /* 既定は出さない */
  display:inline-block;
  margin:0 0 10px;
  padding:3px 14px;
  font-family:var(--aih-font-head);
  font-size:.74rem;
  font-weight:700;
  line-height:1.65;
  color:var(--aih-brand);
  border:1.5px solid var(--aih-brand);
  border-radius:var(--aih-radius-pill);
  background:#fff;
}
.post-type-archive-guide      .p-postList__body::before{ content:"はじめての方へ"; }
.post-type-archive-country    .p-postList__body::before{ content:"国から探す"; }
.post-type-archive-price      .p-postList__body::before{ content:"費用を知る"; }
.post-type-archive-compliance .p-postList__body::before{ content:"労務・法令を守る"; }
.post-type-archive-comparison .p-postList__body::before{ content:"サービス比較"; }
.post-type-archive-service    .p-postList__body::before{ content:"サービスを見る"; }

/* ============================================================
   グローバルメニュー:アイコン+テキスト(サイボウズ式風・縦並び中央)
   アイコンは mask + currentColor で文字色を継承(ホバー/現在地でも追従)。
   各 li の識別クラス aih-navi-<cpt> は build_global_menu.php が付与。
   ============================================================ */
.c-gnav > li.aih-navi > a{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:7px; line-height:1.3; padding-top:6px; padding-bottom:6px;
}
.c-gnav > li.aih-navi > a::before{
  content:""; width:28px; height:28px; flex:0 0 auto;
  background-color:currentColor;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
  -webkit-mask-size:contain; mask-size:contain;
}
.c-gnav > li.aih-navi-guide > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C10.5 3.6 8.6 3 6.5 3 5 3 3.6 3.3 2.5 3.8v14.2C3.6 17.5 5 17.2 6.5 17.2c2.1 0 4 .6 5.5 1.5V4.5zm1.5 0v14.2c1.5-.9 3.4-1.5 5.5-1.5 1.5 0 2.9.3 4 .8V3.8c-1.1-.5-2.5-.8-4-.8-2.1 0-4 .6-5.5 1.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C10.5 3.6 8.6 3 6.5 3 5 3 3.6 3.3 2.5 3.8v14.2C3.6 17.5 5 17.2 6.5 17.2c2.1 0 4 .6 5.5 1.5V4.5zm1.5 0v14.2c1.5-.9 3.4-1.5 5.5-1.5 1.5 0 2.9.3 4 .8V3.8c-1.1-.5-2.5-.8-4-.8-2.1 0-4 .6-5.5 1.5z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-country > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-price > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm2.6 5-2.6 3.8L9.4 7H7.7l3.1 4.4H9v1.2h2v1H9v1.2h2V17h2v-1.6h2v-1.2h-2v-1h2v-1.2h-1.8L16.3 7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm2.6 5-2.6 3.8L9.4 7H7.7l3.1 4.4H9v1.2h2v1H9v1.2h2V17h2v-1.6h2v-1.2h-2v-1h2v-1.2h-1.8L16.3 7z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-compliance > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.8 8 10 4.6-1.2 8-5 8-10V5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.8 8 10 4.6-1.2 8-5 8-10V5z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-comparison > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13h3v8H4zm6.5-9h3v17h-3zM17 9h3v12h-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13h3v8H4zm6.5-9h3v17h-3zM17 9h3v12h-3z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-service > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7.5v7.5H3zm10.5 0H21v7.5h-7.5zM3 13.5h7.5V21H3zm10.5 0H21V21h-7.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7.5v7.5H3zm10.5 0H21v7.5h-7.5zM3 13.5h7.5V21H3zm10.5 0H21V21h-7.5z'/%3E%3C/svg%3E")}

/* ============================================================
   おすすめのタグ(話題タグ topic)ピル行 — 一覧上部に表示
   ============================================================ */
.aih-tagrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:36px 0 8px;padding-top:24px;border-top:1px solid var(--aih-line)}
.aih-tagrow__label{display:inline-flex;align-items:center;gap:9px;font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);white-space:nowrap;margin-right:4px}
.aih-tagrow__label::before{
  content:"";width:34px;height:34px;flex:0 0 auto;border-radius:50%;
  background:var(--aih-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M20.6 11.4 12.6 3.4A2 2 0 0 0 11.2 2.8H5a2 2 0 0 0-2 2v6.2a2 2 0 0 0 .6 1.4l8 8a2 2 0 0 0 2.8 0l6.2-6.2a2 2 0 0 0 0-2.8zM7 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z'/%3E%3C/svg%3E") center/55% no-repeat;
}
.aih-tag{display:inline-block;padding:7px 16px;border-radius:var(--aih-radius-pill);background:var(--aih-brand);color:#fff !important;font-size:.82rem;font-weight:700;text-decoration:none;line-height:1.5;transition:background .15s}
.aih-tag:hover{background:var(--aih-brand-dark);color:#fff !important}

/* ============================================================
   調整:おすすめタグを薄く / グローバルメニューを黒→ブランドブルー
   ============================================================ */
/* タグのピル:淡いブルー地+ブランド文字(主張を弱める)。ホバーで反転 */
.aih-tag{background:var(--aih-brand-soft) !important;color:var(--aih-brand) !important;font-weight:700}
.aih-tag:hover,.aih-tag:focus{background:var(--aih-brand) !important;color:#fff !important}

/* グローバルメニュー:文字・アイコン(currentColor)をブランドブルーに */
.c-gnav a{color:var(--aih-brand) !important}

/* ============================================================
   調整:グローバルメニューのアイコンをライン(線)アイコンへ刷新
   ============================================================ */
.c-gnav > li.aih-navi > a::before{width:30px;height:30px}
.c-gnav > li.aih-navi-guide > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-country > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-price > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4Z'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-compliance > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-comparison > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E")}
.c-gnav > li.aih-navi-service > a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E")}

/* === 関連記事(内部リンク)— 記事末に自動挿入 === */
.aih-related{border:1px solid var(--aih-line);border-radius:var(--aih-radius);background:#fff;padding:18px 22px;margin:40px 0 8px}
.aih-related-h{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1.05rem;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.aih-related-h::before{content:"";width:4px;height:1.1em;background:var(--aih-brand);border-radius:2px;display:inline-block}
.aih-related-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 24px}
.aih-related-list li{border-top:1px solid var(--aih-line);padding:9px 0}
.aih-related-list a{color:var(--aih-ink);text-decoration:none;font-size:.92rem;line-height:1.6}
.aih-related-list a:hover{color:var(--aih-brand);text-decoration:underline}
.aih-related-more{margin:12px 0 0;font-size:.85rem}
.aih-related-more a{color:var(--aih-brand);text-decoration:none}
.aih-related-more a:hover{text-decoration:underline}

/* 調整:グローバルメニューのアイコンを現状の70%に縮小(30px→21px) */
.c-gnav > li.aih-navi > a::before{width:21px;height:21px}

/* 柱への戻り導線([pillar_link]) ※旧テキスト版。現在はカード版(aih-reccard)を使用 */
.aih-pillar-link{margin:30px 0 8px;padding:14px 18px;background:var(--aih-brand-soft);border-left:5px solid var(--aih-brand);border-radius:var(--aih-radius);font-size:.92rem}
.aih-pillar-link__lead{display:block;font-size:.76rem;color:var(--aih-sub);font-weight:700;margin-bottom:3px}
.aih-pillar-link a{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-brand);text-decoration:none}
.aih-pillar-link a:hover{text-decoration:underline}

/* このテーマのオススメ記事(カード型 [pillar_link]) */
.aih-reccard{margin:36px 0 10px}
.aih-reccard__lead{display:flex;align-items:center;gap:8px;font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1.02rem;margin:0 0 12px}
.aih-reccard__lead::before{content:"";width:4px;height:1.05em;background:var(--aih-brand);border-radius:2px;display:inline-block}
.aih-reccard__card{display:flex;align-items:stretch;border:1px solid var(--aih-line);border-radius:var(--aih-radius);overflow:hidden;background:#fff;text-decoration:none;box-shadow:var(--aih-shadow);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.aih-reccard__card:hover{border-color:var(--aih-brand);box-shadow:0 8px 26px rgba(0,97,205,.16);transform:translateY(-2px)}
.aih-reccard__thumb{flex:none;width:240px;background:var(--aih-bg-soft);overflow:hidden}
.aih-reccard__thumb img{width:100%;height:100%;min-height:148px;object-fit:cover;display:block;transition:transform .3s ease}
.aih-reccard__card:hover .aih-reccard__thumb img{transform:scale(1.04)}
.aih-reccard__body{flex:1;min-width:0;padding:20px 24px;display:flex;flex-direction:column;justify-content:center}
.aih-reccard__tag{font-size:.72rem;font-weight:700;color:var(--aih-brand);letter-spacing:.04em;margin-bottom:7px}
.aih-reccard__title{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1.14rem;line-height:1.5;margin:0 0 10px;transition:color .2s ease}
.aih-reccard__card:hover .aih-reccard__title{color:var(--aih-brand)}
.aih-reccard__more{font-size:.85rem;color:var(--aih-brand);font-weight:700}
.aih-reccard__card.is-nothumb .aih-reccard__body{padding:22px 24px}
@media(max-width:600px){
	.aih-reccard__card{flex-direction:column}
	.aih-reccard__thumb{width:100%;height:160px}
	.aih-reccard__thumb img{min-height:0;height:160px}
}

/* 柱の記事一覧([pillar_index]) */
.aih-pillar-index{margin:28px 0;padding:18px 20px;border:1px solid var(--aih-line);border-radius:var(--aih-radius);background:#fff;box-shadow:var(--aih-shadow)}
.aih-pillar-index__h{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);margin:0 0 10px;font-size:1rem}
.aih-pillar-index ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:2px 24px}
.aih-pillar-index li{border-bottom:1px solid var(--aih-line);padding:8px 0}
.aih-pillar-index a{color:var(--aih-data);text-decoration:none;font-size:.9rem}
.aih-pillar-index a:hover{text-decoration:underline}

/* 関連記事([related]) */
.aih-related{margin:26px 0;padding:16px 18px;border:1px dashed var(--aih-line);border-radius:var(--aih-radius);background:var(--aih-bg-soft)}
.aih-related__h{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);margin:0 0 8px;font-size:.95rem}
.aih-related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:2px 22px}
.aih-related li{padding:6px 0;border-bottom:1px solid var(--aih-line)}
.aih-related a{color:var(--aih-data);text-decoration:none;font-size:.88rem}
.aih-related a:hover{text-decoration:underline}

/* ============================================================
   カテゴリ一覧:カードをPC4カラムに + 表示幅を拡張(SWELL -pc-col3 を上書き)
   ============================================================ */
@media (min-width:960px){
  /* アーカイブの本文幅を広げて4列が余裕を持って収まるように */
  .archive .l-mainContent,
  .archive .l-mainContent__inner{max-width:1296px}
  /* 4カラム・グリッド化(SWELLのflex/幅指定を打ち消す) */
  .archive .p-postList.-type-card.-pc-col3{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    max-width:1240px;margin-left:auto;margin-right:auto;
    gap:28px !important;
  }
  .archive .p-postList.-type-card.-pc-col3 > .p-postList__item{
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
  }
}

/* カテゴリ一覧のカード寸法をトップ(.acard)に合わせる */
.archive .p-postList.-type-card .p-postList__item{
  border:1px solid #E6EDF6;border-radius:28px;overflow:hidden;background:#fff
}
.archive .p-postList.-type-card .c-postThumb,
.archive .p-postList.-type-card .c-postThumb__figure,
.archive .p-postList.-type-card .p-postList__figure{aspect-ratio:1200/630;height:auto}
.archive .p-postList.-type-card .p-postList__body{padding:22px 24px 26px}

/* カテゴリ一覧:タブレット(600-959px)は2列(SP1列・PC3列の中間) */
@media (min-width:600px) and (max-width:959px){
  .archive .p-postList.-type-card.-pc-col3{display:grid !important;grid-template-columns:repeat(2,1fr) !important;gap:20px !important}
  .archive .p-postList.-type-card.-pc-col3 > .p-postList__item{width:auto !important;max-width:none !important;margin:0 !important}
}


/* 調査方法 → 注釈化(見出しなし・小さな文字) */
.aih-method-note{margin:34px 0 0;padding-top:14px;border-top:1px solid var(--aih-line);font-size:.76rem;line-height:1.75;color:var(--aih-sub)}
.aih-method-note p{margin:0 0 6px;font-size:inherit;line-height:inherit;color:inherit}
.aih-method-note p:last-child{margin-bottom:0}
.aih-method-note a{color:var(--aih-sub);text-decoration:underline}
.aih-method-note a:hover{color:var(--aih-brand)}

/* 著者プロフィール欄(SWELL「この記事を書いた人」)を一旦非表示。
   税理士等の監修者が確定するまでの暫定対応。表示に戻すにはこのルールを削除。 */
.l-articleBottom__section.-author{display:none !important}

/* === EOR診断(フロント完結) === */
.aih-shindan{max-width:var(--aih-content-w);margin:24px auto}
.aih-shindan-head{margin:0 0 18px}
.aih-shindan-eyebrow{font-family:var(--aih-font-head);font-weight:700;font-size:.8rem;color:var(--aih-brand);letter-spacing:.04em;margin:0 0 4px}
.aih-shindan-title{font-family:var(--aih-font-head);font-weight:700;font-size:1.4rem;color:var(--aih-ink);margin:0 0 8px;line-height:1.4}
.aih-shindan-lead{font-size:.92rem;color:var(--aih-sub);margin:0}
.aih-shindan-q{border:0;margin:0 0 18px;padding:16px 18px;background:#fff;border:1px solid var(--aih-line);border-radius:var(--aih-radius);box-shadow:var(--aih-shadow)}
.aih-shindan-q__label{font-family:var(--aih-font-head);font-weight:700;font-size:1rem;color:var(--aih-ink);padding:0;margin:0 0 10px}
.aih-shindan-opts{display:flex;flex-wrap:wrap;gap:8px}
.aih-shindan-opt{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--aih-line);border-radius:var(--aih-radius-pill);padding:8px 14px;font-size:.88rem;cursor:pointer;background:#fff;transition:border-color .12s,background .12s}
.aih-shindan-opt:hover{border-color:var(--aih-brand)}
.aih-shindan-opt input{accent-color:var(--aih-brand);margin:0}
.aih-shindan-opt:has(input:checked){background:var(--aih-brand-soft);border-color:var(--aih-brand)}
.aih-shindan-err{color:#b3261e;font-size:.85rem;margin:0 0 10px}
.aih-shindan-actions{margin:6px 0 14px}
.aih-shindan-disclaimer{margin-top:10px}
/* 結果 */
.aih-shindan-summary{font-size:.95rem;line-height:1.9;background:var(--aih-brand-soft);border-radius:var(--aih-radius);padding:14px 18px;margin:6px 0 18px}
.aih-shindan-cards{display:grid;gap:14px;margin:0 0 18px}
.aih-shindan-card{border:1px solid var(--aih-line);border-radius:var(--aih-radius);padding:16px 18px;background:#fff;box-shadow:var(--aih-shadow)}
.aih-shindan-card__head{display:flex;align-items:baseline;gap:10px;margin:0 0 8px}
.aih-shindan-card__rank{font-family:var(--aih-font-head);font-size:.74rem;font-weight:700;color:#fff;background:var(--aih-brand);border-radius:999px;padding:2px 10px}
.aih-shindan-card__name{font-family:var(--aih-font-head);font-weight:700;font-size:1.12rem;color:var(--aih-ink)}
.aih-shindan-card__reasons{margin:0 0 10px 1.1em;padding:0;font-size:.88rem;line-height:1.7}
.aih-shindan-card__link{font-size:.9rem;font-weight:700;color:var(--aih-brand);text-decoration:none}
.aih-shindan-card__link:hover{text-decoration:underline}
.aih-shindan-check,.aih-shindan-related{margin:0 0 18px}
.aih-shindan-check__h{font-family:var(--aih-font-head);font-weight:700;font-size:.98rem;color:var(--aih-ink);margin:0 0 8px}
.aih-shindan-check ul,.aih-shindan-related ul{margin:0 0 0 1.1em;padding:0;font-size:.9rem;line-height:1.8}
.aih-shindan-cta2{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:6px 0 12px}
.aih-shindan-restart{background:none;border:0;color:var(--aih-sub);font-size:.85rem;text-decoration:underline;cursor:pointer}
/* 記事内CTA */
.aih-shindan-cta{background:var(--aih-brand-soft);border:1px solid var(--aih-line);border-radius:var(--aih-radius);padding:18px 20px;margin:28px 0;text-align:center}
.aih-shindan-cta__eyebrow{font-family:var(--aih-font-head);font-weight:700;font-size:.76rem;color:var(--aih-brand);margin:0 0 4px}
.aih-shindan-cta__title{font-family:var(--aih-font-head);font-weight:700;font-size:1.12rem;color:var(--aih-ink);margin:0 0 6px}
.aih-shindan-cta__text{font-size:.86rem;color:var(--aih-sub);margin:0 0 12px;line-height:1.7}

/* === EOR診断 結果:大きく・中央寄せ(画面遷移を分かりやすく) === */
.aih-shindan-result{text-align:center}
.aih-shindan-result .aih-shindan-eyebrow{font-size:1rem}
.aih-shindan-result .aih-shindan-title{font-size:1.9rem;line-height:1.4;margin-bottom:14px}
.aih-shindan-result .aih-shindan-summary{font-size:1.08rem;line-height:2;text-align:left;max-width:620px;margin-left:auto;margin-right:auto}
.aih-shindan-result .aih-shindan-cards{max-width:620px;margin-left:auto;margin-right:auto;text-align:left}
.aih-shindan-result .aih-shindan-card__name{font-size:1.28rem}
.aih-shindan-result .aih-shindan-card__reasons{font-size:.95rem}
.aih-shindan-result .aih-shindan-check,
.aih-shindan-result .aih-shindan-related{max-width:620px;margin-left:auto;margin-right:auto;text-align:left}
.aih-shindan-result .aih-shindan-cta2{justify-content:center}
@media(max-width:560px){
  .aih-shindan-result .aih-shindan-title{font-size:1.55rem}
}

/* === EOR診断 追補:ロゴ / 画面切替 / 余白 / CTA縦並び === */
/* 候補企業ロゴ */
.aih-shindan-card__head{align-items:center;gap:12px}
.aih-shindan-card__logo{width:40px;height:40px;object-fit:contain;border-radius:8px;border:1px solid var(--aih-line);background:#fff;flex:none;padding:3px}
/* 「条件を変えてやり直す」は「詳しく見る」ボタンの下に縦並び・中央 */
.aih-shindan-result .aih-shindan-cta2{flex-direction:column;align-items:center;gap:12px;margin-top:26px}
.aih-shindan-restart{font-size:.9rem}
/* 余白に余裕を持たせる */
.aih-shindan{margin:34px auto}
.aih-shindan-q{padding:20px 22px;margin:0 0 22px}
.aih-shindan-result{padding:10px 6px 8px}
.aih-shindan-result .aih-shindan-summary{padding:18px 22px;margin:12px auto 28px}
.aih-shindan-result .aih-shindan-cards{gap:18px;margin:0 auto 28px}
.aih-shindan-card{padding:20px 22px}
.aih-shindan-result .aih-shindan-check,
.aih-shindan-result .aih-shindan-related{margin-bottom:26px}
/* 結果の画面切替を明確にするフェードイン */
@keyframes aihShindanFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.aih-shindan-result{animation:aihShindanFade .35s ease both}
@media(prefers-reduced-motion:reduce){.aih-shindan-result{animation:none}}

/* === EOR診断 品質強化(進捗・番号バッジ・選択強調・1位主役化) === */
/* 回答進捗バー */
.aih-shindan-progress{display:flex;align-items:center;gap:12px;margin:0 0 24px}
.aih-shindan-progress__track{flex:1;height:8px;background:var(--aih-brand-soft);border-radius:999px;overflow:hidden}
.aih-shindan-progress__fill{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--aih-brand),var(--aih-brand-dark));border-radius:999px;transition:width .35s ease}
.aih-shindan-progress__label{flex:none;margin:0;font-family:var(--aih-font-head);font-weight:700;font-size:.8rem;color:var(--aih-sub);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.aih-shindan-progress__fill{transition:none}}

/* 設問カード:ホバーで浮かせる */
.aih-shindan-q{transition:border-color .15s,box-shadow .15s}
.aih-shindan-q:hover{border-color:var(--aih-brand);box-shadow:0 4px 16px rgba(12,39,71,.10)}
/* 設問番号を丸バッジ化。回答済みは塗りつぶしで進捗を体感させる */
.aih-shindan-q__label{display:flex;align-items:center;gap:10px}
.aih-shindan-q__num{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--aih-brand-soft);color:var(--aih-brand);font-family:var(--aih-font-head);font-weight:800;font-size:.82rem;line-height:1;transition:background .15s,color .15s}
.aih-shindan-q__text{flex:1}
.aih-shindan-q:has(input:checked) .aih-shindan-q__num{background:var(--aih-brand);color:#fff}

/* 選択肢:チェック状態を明確に(insetシャドウで太枠化しレイアウトシフトを防ぐ) */
.aih-shindan-opt{transition:border-color .12s,background .12s,box-shadow .12s,color .12s}
.aih-shindan-opt:has(input:checked){color:var(--aih-brand);font-weight:700;box-shadow:inset 0 0 0 1px var(--aih-brand)}
.aih-shindan-opt input:focus-visible{outline:2px solid var(--aih-brand);outline-offset:2px}

/* 送信ボタン:全幅で主役感。全問回答で少し際立つ */
.aih-shindan-actions{margin:8px 0 14px}
.aih-shindan-actions .aih-btn{width:100%;padding:16px 30px;font-size:1rem}
.aih-shindan-form.is-complete .aih-shindan-actions .aih-btn{box-shadow:0 6px 20px rgba(0,97,205,.34)}

/* 結果カード:順位メダル+ロゴマーク+明確なボタンで「結果感」を出す */
.aih-shindan-card{position:relative;transition:border-color .15s,box-shadow .15s}
.aih-shindan-card:hover{box-shadow:0 6px 20px rgba(12,39,71,.12)}
/* ヘッダ行:順位メダル + ラベル */
.aih-shindan-card__head{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.aih-shindan-card__medal{flex:none;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;font-family:var(--aih-font-head);font-weight:800;font-size:1.15rem;line-height:1;background:var(--aih-brand-soft);color:var(--aih-brand);box-shadow:0 0 0 1px var(--aih-line)}
.aih-shindan-card__rank{font-family:var(--aih-font-head);font-size:.8rem;font-weight:700;color:var(--aih-sub);background:transparent;border-radius:0;padding:0;letter-spacing:.02em}
/* ロゴはロゴマーク全体を中央に、枠の約1/3サイズで(.entry-content img のheight:auto/角丸に勝つよう詳細度を上げる) */
.aih-shindan-card__brand{display:flex;align-items:center;justify-content:center;min-height:34px;margin:0 0 16px}
.aih-shindan-card__brand .aih-shindan-card__logo{height:30px;width:auto;max-width:34%;object-fit:contain;object-position:center;border:0;background:none;padding:0;border-radius:0}
.aih-shindan-card__name{font-family:var(--aih-font-head);font-weight:800;font-size:1.3rem;color:var(--aih-ink)}
/* 詳細ボタン:テキストリンクではなくしっかりしたボタンで全幅 */
.aih-shindan-card__cta{display:flex;width:100%;justify-content:center;align-items:center;gap:6px;margin-top:6px;padding:13px 24px;font-size:.92rem}
/* 1位カード:本命の主役化(ブランドカラー・大きめメダル) */
.aih-shindan-card--top{border-color:var(--aih-brand);box-shadow:inset 0 0 0 1px var(--aih-brand),0 8px 26px rgba(0,97,205,.18)}
.aih-shindan-card--top .aih-shindan-card__medal{width:46px;height:46px;font-size:1.35rem;background:var(--aih-brand);color:#fff;box-shadow:0 0 0 1px var(--aih-brand),0 4px 12px rgba(0,97,205,.35)}
.aih-shindan-card--top .aih-shindan-card__rank{color:var(--aih-brand);font-size:.86rem;font-weight:800}

/* アウトライン版ボタン(2位・3位の詳細ボタン。1位=塗りと階層化) */
.aih-btn--ghost{background:#fff;color:var(--aih-brand) !important;box-shadow:none;border:1.5px solid var(--aih-brand)}
.aih-btn--ghost:hover{background:var(--aih-brand-soft);color:var(--aih-brand) !important;box-shadow:none;border:1.5px solid var(--aih-brand)}

/* フラット統一:ドロップシャドウを排し、境界線で構成する(サイト全体のフラット方針に合わせる) */
.aih-shindan-q,.aih-shindan-card{border-width:2px;box-shadow:none}
.aih-shindan-q:hover,.aih-shindan-card:hover{box-shadow:none;border-color:var(--aih-brand)}
.aih-shindan-card--top{box-shadow:none;border-color:var(--aih-brand)}
.aih-shindan-card__medal{box-shadow:none;border:1px solid var(--aih-line)}
.aih-shindan-card--top .aih-shindan-card__medal{box-shadow:none;border-color:var(--aih-brand)}
.aih-shindan .aih-btn{box-shadow:none}
.aih-shindan .aih-btn:hover{box-shadow:none;transform:none}
.aih-shindan-form.is-complete .aih-shindan-actions .aih-btn{box-shadow:none}

/* キーボード操作の可視フォーカス */
.aih-shindan-card__link:focus-visible,.aih-shindan-restart:focus-visible{outline:2px solid var(--aih-brand);outline-offset:2px;border-radius:4px}

/* === トップの診断CTA(プラグインから注入。テーマ巻き戻しの影響を受けない) === */
.aih-top-diag{max-width:1040px;margin:64px auto 0;padding:0}
.aih-top-diag__card{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--aih-brand),var(--aih-brand-dark));border-radius:24px;padding:44px 50px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:32px}
.aih-top-diag__card::after{content:"";position:absolute;right:-70px;top:-70px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}
.aih-top-diag__card::before{content:"";position:absolute;left:-50px;bottom:-90px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.aih-top-diag__copy{position:relative;color:#fff}
.aih-top-diag__eyebrow{font-family:var(--aih-font-head);font-weight:700;font-size:.78rem;letter-spacing:.14em;opacity:.92;margin:0 0 8px}
.aih-top-diag__title{font-family:var(--aih-font-head);font-weight:800;font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.45;margin:0;color:#fff}
.aih-top-diag__text{margin:12px 0 0;font-size:.92rem;line-height:1.9;color:rgba(255,255,255,.92)}
.aih-top-diag__act{position:relative;text-align:center}
.aih-top-diag__btn{display:inline-block;background:#fff;color:var(--aih-brand);font-family:var(--aih-font-head);font-weight:700;font-size:1rem;padding:18px 36px;border-radius:999px;text-decoration:none;white-space:nowrap;transition:transform .15s}
.aih-top-diag__btn:hover{transform:translateY(-2px);color:var(--aih-brand)}
.aih-top-diag__note{display:block;margin-top:12px;font-size:.72rem;font-weight:700;letter-spacing:.06em;color:rgba(255,255,255,.88)}
@media(max-width:820px){.aih-top-diag__card{grid-template-columns:1fr;text-align:center;padding:36px 24px;gap:20px}}
/* カテゴリー(アーカイブ)最下部・フッター直上に置く版:左右ガターと上下余白を付与 */
.aih-top-diag--standalone{margin:56px auto 60px;padding:0 20px;box-sizing:border-box}

/* 診断CTAを載せる水色セクションの下余白を詰め、カード上下の余白を均等化 */
.eortop .block.aware{padding-bottom:64px}

/* この記事を書いた人(著者プロフィール:全記事末) */
.aih-author{border:1px solid var(--aih-line);border-radius:var(--aih-radius);background:#fff;padding:20px 22px;margin:40px 0 8px;box-shadow:var(--aih-shadow)}
.aih-author__head{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1.05rem;margin:0 0 14px;display:flex;align-items:center;gap:8px}
.aih-author__head::before{content:"";width:4px;height:1.1em;background:var(--aih-brand);border-radius:2px;display:inline-block}
.aih-author__body{display:flex;gap:18px;align-items:flex-start}
.aih-author__avatar{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid var(--aih-brand-soft)}
.aih-author__meta{min-width:0}
.aih-author__name{font-family:var(--aih-font-head);font-weight:700;color:var(--aih-ink);font-size:1.02rem;margin:2px 0 2px}
.aih-author__title{color:var(--aih-brand);font-size:.82rem;font-weight:700;margin:0 0 8px}
.aih-author__bio{color:var(--aih-text);font-size:.9rem;line-height:1.75;margin:0}
@media(max-width:600px){.aih-author__body{flex-direction:column;align-items:center;text-align:center;gap:12px}.aih-author__title{margin-bottom:6px}}

/* フッター:運営会社 */
.aih-operator{text-align:center;font-size:.8rem;margin:6px 0 0;opacity:.9}
.aih-operator a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.aih-operator a:hover{opacity:.75}
