/* ============================================================
   ITKAGYO 共通スタイル v3
   ・カテゴリ別の色分けは廃止。サイト全体でアクセント1色（--accent）
   ・アイコンはすべてSVG（Lucide）。<svg class="i"><use href="#i-名前"/></svg>
   ============================================================ */
:root {
  --accent: #1e3a8a;          /* ブランド色：ネイビー。ここ1行で全ページの色が変わる */
  --accent-dark: color-mix(in srgb, var(--accent), #000 22%);
  --accent-tint: color-mix(in srgb, var(--accent), #fff 92%);
  --accent-line: color-mix(in srgb, var(--accent), #fff 70%);
  --gold: #e3a008;
  --safe: #0f766e;            /* 安全性を伝える色：ティール */
  --safe-tint: #e6f4f2;
  --safe-line: #c9e9e5;

  --ink: #1a2238;             /* 文字：ネイビー寄りの黒 */
  --ink-soft: #5a6478;        /* 補足文字：ネイビー寄りのグレー */
  --bg: #f4f6fa;              /* 背景：ごく薄いネイビー */
  --card: #ffffff;
  --line: #dde3ee;            /* 線：ネイビー寄りのグレー */

  /* 2026-11-13：Webフォント（Google Fonts）をやめ、端末に入っているフォントで表示（表示速度のため） */
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --r: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 15px; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* チェックボックス：サイト全体でブランド色（ネイビー）・少し大きめ（2026-11-20） */
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; vertical-align: middle; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* SVGアイコン共通 */
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
     stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.chara { width: 44px; height: 44px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-img { display: block; height: 28px; width: auto; align-self: flex-start; margin-bottom: 3px; }
.sub { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hd-btn, .hd-pop > summary {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  color: var(--ink); cursor: pointer; list-style: none; text-decoration: none;
}
.hd-pop > summary::-webkit-details-marker { display: none; }
.hd-btn:hover, .hd-pop > summary:hover { background: var(--bg); }
.hd-btn .i, .hd-pop > summary .i { width: 20px; height: 20px; }
.hd-pop { position: relative; }
/* ヘッダー検索（2026-11-13）：虫眼鏡で開く検索欄。PCは右寄せの枠、スマホはヘッダーの下に全幅 */
.hd-search { position: relative; }
.hd-btn[aria-expanded="true"] { background: var(--accent-tint); color: var(--accent); }
.hs-panel { position: absolute; right: -52px; top: 50px; width: min(420px, calc(100vw - 28px)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: 10px; z-index: 30; }
.hs-panel[hidden] { display: none; }
.hs-box { position: relative; display: flex; align-items: center; }
.hs-box .s-ico { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--ink-soft); pointer-events: none; }
.hs-box input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 40px 11px 38px; border: 1.5px solid var(--accent-line); border-radius: 10px; background: #fff; color: var(--ink); }
.hs-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hs-box input::-webkit-search-cancel-button { display: none; }
.hs-close { position: absolute; right: 4px; width: 34px; height: 34px; border: 0; background: none; color: var(--ink-soft); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.hs-close .i { width: 18px; height: 18px; }
.hs-close:hover { background: var(--bg); }
.hs-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(60vh, 440px); overflow-y: auto; }
.hs-list li a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.hs-list li a small { margin-left: auto; flex: none; color: var(--ink-soft); font-size: 12px; }
.hs-list li[aria-selected="true"] a, .hs-list li a:hover { background: var(--accent-tint); }
.hs-head { font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 6px 10px 2px; }
.hs-all a { justify-content: center; color: var(--accent) !important; font-weight: 700; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; margin-top: 4px; }
.hs-msg { font-size: 13px; color: var(--ink-soft); padding: 10px; }
@media (max-width: 760px) {
  .hd-search { position: static; }
  .hs-panel { position: absolute; left: 0; right: 0; top: 100%; width: auto; border-radius: 0 0 var(--r) var(--r); border-left: 0; border-right: 0; }
  .hs-list { max-height: calc(100vh - 160px); }
}
.pop {
  position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 8px; margin: 0; list-style: none; min-width: 180px;
}
.menu { width: 260px; max-height: 75vh; overflow: auto; }
.menu-group { margin: 6px 8px 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.menu ul, .pop { list-style: none; }
.menu ul { margin: 0 0 6px; padding: 0; }
.menu a, .pop li a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu a:hover, .pop li a:hover { background: var(--bg); }
.menu a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.menu .n { margin-left: auto; font-size: 12px; color: var(--ink-soft); font-family: var(--mono); }

/* ---------- ヒーロー・検索 ---------- */
.hero { padding: 40px 0 28px; text-align: center; }
.hero h1 { font-size: 24px; line-height: 1.5; margin: 0 0 18px; }
.hero h1 strong { color: var(--accent); }
.search { position: relative; max-width: 680px; margin: 0 auto; text-align: left; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.s-ico { position: absolute; left: 15px; top: 15px; width: 18px; height: 18px; color: var(--ink-soft); }
.suggest {
  position: absolute; left: 0; right: 0; top: 52px; z-index: 10; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.suggest li .i { color: var(--accent); }
.suggest li small { margin-left: auto; color: var(--ink-soft); font-size: 12px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-tint); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 18px auto 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
.chip .i { width: 14px; height: 14px; color: var(--accent); }
.chip:hover { border-color: var(--accent-line); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] .i { color: #fff; }

/* ---------- セクション・見出し ---------- */
main.wrap { padding-bottom: 40px; }
.sec { margin: 36px 0 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; margin: 0 0 14px; line-height: 1.4;
      padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--accent), #fff 88%); }  /* ごく薄いネイビーの下線 */
.h2 .i { color: var(--accent); width: 22px; height: 22px; }
.sec-head .h2 { margin: 0; }
.sec-head { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--accent), #fff 88%); }
.sec-head .h2 { border-bottom: 0; padding-bottom: 0; }  /* 横並び見出しは行全体に線を引く */
.sec-sub { margin: -8px 0 16px; font-size: 13px; color: var(--ink-soft); }
.h3 { display: flex; align-items: center; gap: 8px; font-size: 16.5px; margin: 26px 0 12px; }
.h3 .i { color: var(--accent); }
.h3 a { color: var(--ink); text-decoration: none; }
.h3 a:hover { color: var(--accent); }
.h3 .n { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.big > .h2 { font-size: 22px; }

/* ---------- ツールカード ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tcard { position: relative; min-width: 0; }
.tcard > a, .t-title, .t-desc { min-width: 0; overflow-wrap: anywhere; }   /* 長い英字（ARRAYFORMULAなど）も折り返す */
.tcard > a {
  display: flex; flex-direction: column; height: 100%; min-height: 128px; padding: 16px 16px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.tcard > a:hover { border-color: var(--accent-line); box-shadow: 0 4px 14px rgba(15, 23, 42, .07); }
.t-ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }
.t-title { font-weight: 700; font-size: 15px; line-height: 1.45; padding-right: 26px; }
.t-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; margin-top: 4px;
          display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-cat { margin-top: auto; padding-top: 8px; font-size: 11.5px; color: var(--ink-soft); }
.rank { font-size: 12px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 3px; margin-bottom: 4px; }
.rank .i { width: 14px; height: 14px; }
.rank.r1 { color: #b8860b; }  /* 金 */
.rank.r2 { color: #6b7280; }  /* 銀 */
.rank.r3 { color: #a0522d; }  /* 銅 */
.rank.r1 .i, .rank.r2 .i, .rank.r3 .i { fill: currentColor; fill-opacity: .25; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 8px; color: #9aa5b1; cursor: pointer;
}
.fav:hover { background: var(--bg); }
.fav .i { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: var(--gold); }
.fav[aria-pressed="true"] .i { fill: var(--gold); }
.more { text-align: center; margin: 16px 0 0; }
.more-btn {
  display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 22px;
  text-decoration: none; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.more-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.link-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; color: var(--ink-soft); background: none; border: 0; cursor: pointer; }

/* タブ */
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 700;
               border: 0; background: none; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.tabs button .i { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }

/* ---------- 更新情報 ---------- */
.news { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.news li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.news li:first-child { border-top: 0; }
.news time { font-size: 13px; color: var(--ink-soft); font-family: var(--mono); }
.badge { font-size: 11.5px; color: var(--accent-dark); background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: 999px; padding: 0 10px; }
.nt { flex: 1 1 100%; }
.nt a { color: var(--ink); }

/* ---------- ITKAGYOについて ---------- */
.about-box { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--safe); border-radius: var(--r); padding: 26px 22px; }
.about > .h2 .i, .about .h3 .i, .about .checks .i { color: var(--safe); }
.about > .h2 { border-bottom-color: var(--safe-line); }
.about-lead { margin: 0 0 18px; font-size: 14.5px; }
.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.use-col { background: var(--safe-tint); border-radius: var(--r); padding: 18px; }
.use-col .h3 { margin: 0 0 10px; font-size: 15px; }
.use-col ul { margin: 0; padding: 0 0 0 20px; font-size: 13.5px; }
.use-col li { margin: 4px 0; }
.checks { list-style: none; padding: 0 !important; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .i { color: var(--accent); margin-top: 4px; }
.please .small { margin: 12px 0 0; color: var(--ink-soft); font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; }
@media (max-width: 760px) { .use-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.faq summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > .i:first-child { color: var(--accent); }
.faq .chev { margin-left: auto; color: var(--ink-soft); transition: transform .2s; }
.faq[open] .chev { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 16px 16px 42px; font-size: 14px; color: var(--ink-soft); }

/* ---------- カテゴリページ ---------- */
.hero.cat { text-align: left; padding: 22px 0 26px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.hero.cat h1 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 8px; }
.h1-ico { width: 30px; height: 30px; color: var(--accent); }
.lead { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 760px; }
.about-cat { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 14px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.qt { border-collapse: collapse; width: 100%; font-size: 14px; }
.qt th, .qt td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.qt th { background: var(--accent-tint); font-size: 13px; }
.qt tr:last-child td { border-bottom: 0; }
.qt td:first-child { font-weight: 700; }
.table-note { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; }
.other-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.other-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #fff; border: 1px solid var(--line);
                border-radius: 999px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.other-cats a .i { color: var(--accent); }
.other-cats a:hover { border-color: var(--accent-line); }
.nf { padding-top: 40px; }
.nf h1 { display: flex; gap: 10px; align-items: center; }
.nf .more { margin: 20px 0 24px; }
.nf .more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf-note { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin: -8px 0 24px; }

/* ---------- お問い合わせ帯・フッター ---------- */
.contact-band { margin-top: 56px; background: #fff; border-top: 1px solid var(--line); text-align: center; padding: 26px 0; font-size: 13.5px; color: var(--ink-soft); }
.contact-band p { margin: 0 0 12px; }
.contact-links { display: flex; justify-content: center; gap: 12px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
/* フッター：広い画面は5列、中くらいはロゴの横に2列、スマートフォンは1列 */
.f-grid { display: grid; grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(0, 1fr)); gap: 24px 28px; padding-top: 32px; padding-bottom: 24px; align-items: start; }
.f-h2 { margin-top: 18px; }
.f-h { font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { font-size: 13px; line-height: 2; }
.f-col li a { color: var(--ink-soft); text-decoration: none; }
.f-col li a::before { content: "› "; }
.f-col li a:hover { color: var(--accent); }
.copyright { text-align: center; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); margin: 0; padding: 16px 0; }

@media (max-width: 1000px) {
  .f-grid { grid-template-columns: minmax(170px, auto) 1fr 1fr; }
  .f-brand { grid-row: span 2; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; gap: 20px; }
  .f-brand { grid-row: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .logo-img { height: 24px; }
  .chara { width: 38px; height: 38px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }   /* 中身の長さで列が広がらないように */
  .tcard > a { padding: 12px; min-height: 120px; }
  .t-title { font-size: 13.5px; }
  .t-desc { font-size: 11.5px; }
  .h2 { font-size: 18.5px; }
  .tabs button { padding: 7px 10px; font-size: 12.5px; }
  .hero.cat h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 更新情報のページリンク ---------- */
.nlinks { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.nlink { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink); text-decoration: none;
         background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.nlink .i { width: 14px; height: 14px; color: var(--accent); }
.nlink:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- ツールページ ---------- */
.tool-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-title h1 { margin: 0 0 8px; }
.fav.fav-lg { position: static; width: auto; height: 34px; padding: 0 12px; gap: 5px; display: inline-flex; align-items: center;
              border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; color: var(--ink-soft); background: #fff; margin-bottom: 8px; }
.fav.fav-lg .i { width: 16px; height: 16px; }
.fav.fav-lg[aria-pressed="true"] { color: var(--accent-dark); border-color: var(--accent-line); background: var(--accent-tint); }
.fav.fav-lg[aria-pressed="true"] .i { color: var(--gold); fill: var(--gold); }
.tool-main > .tool-panel { margin-top: 24px; }

/* パネル（見出しバー付きの白い箱） */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 20px; overflow: hidden; }
main > .safe-panel { margin-top: 36px; }
.panel-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 13px 20px; font-size: 14px; font-weight: 700;
           color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.panel-h .i { width: 16px; height: 16px; }
.panel-b { padding: 18px 20px; }
.panel.no-pad .panel-b { padding: 0 0 18px; }
.panel.no-pad .items { padding: 18px 20px 0; }

/* 特徴・ユースケース・安全性の項目 */
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.item-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
            background: var(--accent-tint); color: var(--accent); }
.item-ico .i { width: 20px; height: 20px; }
.item h3 { margin: 0 0 2px; font-size: 14.5px; line-height: 1.5; }
.item p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; }
/* 入力データの扱い（ティール） */
.safe-panel .panel-b { padding: 0 0 18px; }
.safe-panel .items { padding: 18px 20px 0; }
.safe-panel .panel-h .i { color: var(--safe); }
.safe-panel .item-ico { background: var(--safe-tint); color: var(--safe); }
.safe-banner { display: flex; gap: 14px; align-items: center; background: var(--safe-tint); padding: 14px 20px; border-bottom: 1px solid var(--safe-line); }
.safe-banner .item-ico { background: var(--safe-line); }
.safe-banner p { margin: 0; font-size: 13px; color: #0d5c56; }
.safe-banner .sb-t { font-weight: 700; font-size: 14.5px; color: #0b4a45; }

/* 使い方（縦ステップ＋イラスト） */
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.steps2 { list-style: none; margin: 0; padding: 0; }
.steps2 li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.steps2 li:last-child { padding-bottom: 0; }
.steps2 li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--accent-line); }
.num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); color: #fff;
       display: grid; place-items: center; font-weight: 700; font-size: 14px; font-family: var(--mono); }
.steps2 h3 { margin: 3px 0 2px; font-size: 15px; }
.steps2 p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.illust img { width: 100%; height: auto; border-radius: 12px; display: block; }
.illust-ph { aspect-ratio: 1000 / 530; border-radius: 12px; border: 2px dashed var(--accent-line); background: var(--accent-tint);
             display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent); font-size: 12px; }
.illust-ph .i { width: 48px; height: 48px; stroke-width: 1.4; }

/* 基礎知識 */
.basics section + section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.basics .h3 { margin: 0 0 8px; font-size: 15.5px; }
.basics p, .basics ul { font-size: 14px; margin: 0 0 8px; }
.basics ul { padding-left: 22px; }
.basics li { margin: 4px 0; }
.faq-panel .faq { border-radius: 10px; }
.faq-panel .faq:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .howto { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
}

/* ---------- キャラの吹き出し ---------- */
.say { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0; }
.say-av { width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--line); object-fit: cover; }
.say-b { position: relative; flex: 0 1 auto; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 6px; }
.say-b::before { content: ""; position: absolute; left: -8px; top: 18px; width: 14px; height: 14px; background: #fff;
                 border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.say-b p { margin: 0; font-size: 14px; line-height: 1.75; }
/* キャラを右側に（指差しは左を指すため） */
.say-r { flex-direction: row-reverse; }
.say-r .say-b::before { left: auto; right: -8px; transform: rotate(-135deg); }
/* パネルの中（白背景）では吹き出しを薄いネイビーに */
.panel .say-b, .panel .say-b::before { background: var(--accent-tint); border-color: var(--accent-line); }
.panel .say { margin-top: 0; }
/* TOPの「ITKAGYOについて」（ティール） */
.about .say-b, .about .say-b::before { background: var(--safe-tint); border-color: var(--safe-line); }
/* 404の大きいキャラ */
.say-lg .say-av { width: 96px; height: 96px; }
.say-lg .say-b { margin-top: 14px; max-width: 680px; }
.say-lg .say-b p { font-size: 15px; }
/* 入力データの扱い：盾を持つキャラ */
.safe-av { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; border: 2px solid var(--safe-line); object-fit: cover; }
@media (max-width: 560px) {
  .say-av { width: 52px; height: 52px; }
  .say-lg .say-av { width: 72px; height: 72px; }
}

/* ---------- 注意書き（からだ・お金など） ---------- */
.caution { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 0; padding: 16px 18px;
           background: #fff8e6; border: 1px solid #f4d58d; border-left: 5px solid #b7791f; border-radius: var(--r); }
.caution-av { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; border: 2px solid #f4d58d; object-fit: cover; }
.caution-t { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 700; color: #7c4a03; font-size: 15px; }
.caution-t .i { color: #b7791f; }
.caution ul { margin: 0; padding-left: 20px; font-size: 13.5px; color: #4a3200; }
.caution li { margin: 3px 0; }

/* ===== タグ：パソコンは2行まで（開閉）、スマホは2行の横スクロール ===== */
.chips { max-height: 82px; overflow: hidden; }
.chips.open { max-height: none; }
.chips-more { text-align: center; margin: 10px 0 0; }
.chips-more button { font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.chips.open + .chips-more svg { transform: rotate(180deg); }
@media (max-width: 600px) {
  .chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; overflow-x: auto; max-height: none;
           padding: 0 4px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .chips .chip { white-space: nowrap; }
}
.suggest .sg-head { font-size: 12px; font-weight: 700; color: var(--ink-soft); padding: 8px 14px 4px; cursor: default; background: none !important; }

/* ===== 使い方のレアなイラスト ===== */
.illust.rare { position: relative; }
.illust.rare img { box-shadow: 0 0 0 3px #f5c542, 0 0 24px rgba(245, 197, 66, .55); border-radius: 12px; }
.illust.rare.rainbow img { box-shadow: 0 0 0 3px #a78bfa, 0 0 28px rgba(236, 72, 153, .45); }
.rare-cap { font-size: 12.5px; font-weight: 700; color: #8a5a00; text-align: center; margin: 8px 0 0; }
.illust.rainbow .rare-cap { color: #7c3aed; }
.illust.rare.angel img { box-shadow: 0 0 0 3px #e2e8f0, 0 0 26px rgba(250, 204, 21, .45); }
.illust.angel .rare-cap { color: #1e3a8a; }

/* ===== プライバシーポリシー・免責事項 ===== */
.legal { max-width: 860px; padding-bottom: 48px; }
.legal h1 { font-size: 26px; margin: 18px 0 10px; }
.legal h2 { font-size: 19px; margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-line); }
.legal p { line-height: 1.9; margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; background: #fff; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.7; }
.legal th { background: var(--accent-tint); }
.legal td:first-child { white-space: nowrap; font-weight: 700; width: 1%; }
.legal thead + tbody td:first-child { white-space: normal; width: auto; }

/* SNSのリンク（ロゴは simple-icons・各サービスの色） */
.sns { display: flex; flex-wrap: wrap; gap: 8px; }
.sns a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .15s, opacity .15s; flex: none; }
.sns a:hover { transform: translateY(-2px); opacity: .9; }
.sns svg { width: 17px; height: 17px; fill: #fff; }
.sns-ft { margin-top: 14px; }
/* ツールの直後のおすすめ */
.after-tool { margin-top: 28px; }
.sec-lead { margin: -6px 0 14px; font-size: 13.5px; color: var(--ink-soft); }

/* ☆を押したときのお知らせ */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 100; display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px); background: #1f2937; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ITKAGYOについて（/about/） */
.about-page h2 { display: flex; align-items: center; gap: 8px; }
.about-page h2 .i { width: 20px; height: 20px; color: var(--accent); flex: none; }
.ab-items { display: grid; gap: 12px; margin: 0 0 14px; }
.ab-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.ab-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--safe-tint); color: var(--safe); }
.ab-ico .i { width: 20px; height: 20px; }
.ab-item h3 { margin: 0 0 4px; font-size: 15.5px; }
.ab-item p { margin: 0; font-size: 14px; line-height: 1.8; }
.about-page .use-grid { margin-bottom: 12px; }
.about-page .use-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.about-page .use-col ul { margin: 0; padding-left: 1.2em; }
.about-page .use-col li { line-height: 1.8; font-size: 14px; }
.sns-about { margin: 6px 0 14px; }
.ab-prof td:first-child .i { width: 16px; height: 16px; color: var(--accent); vertical-align: -3px; margin-right: 6px; }

/* TOP のカテゴリ欄は、画面に近づくまで描画を後回しにする（最初の表示を速くする。2026-11-13） */
.cat-block { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* 広告枠（2026-11-21）。中身は GTM のタグが入れる。サイト内に AdSense のコードは置かない
   ・ディスプレイ広告・記事内広告は、後から広告が入ってもページがずれないよう高さを先に確保（CLS 対策）
   ・広告が入らなかった枠（unfilled）は閉じる。印刷では出さない */
.ad-slot { margin: 28px auto; text-align: center; }
.ad-slot::before { content: "スポンサーリンク"; display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: .05em; margin-bottom: 4px; }
.ad-display { min-height: 300px; }
.ad-in-article { min-height: 280px; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
@media print { .ad-slot { display: none !important; } }
