@charset "UTF-8";

/* =========================================================
   ケアプラン文例集  共通スタイル
   「ケアマネのミカタ」と同じ設計思想（文字大きめ・押す場所大きめ）を
   引き継ぎつつ、メインカラーをスカイブルーにしてブランド内で見分ける。
   ========================================================= */

:root {
  --cream: #f3faf6;
  --cream-2: #e7f3ec;
  --paper: #ffffff;
  --ink: #2f3c46;
  --ink-soft: #5c6d78;
  --ink-faint: #5f6e79;

  --sky: #3b7d64;
  --sky-d: #2f6650;
  --sky-l: #e8f4ef;

  --green: #3b7d64;
  --green-d: #2f6650;
  --green-l: #e8f4ef;

  --orange: #ea9540;
  --orange-d: #9a5313;
  --orange-l: #fdefdf;

  --pink-l: #fdeef0;
  --red: #b2453e;

  --gold: #7a5f18;
  --gold-l: #f7f0da;

  --slate: #64748b;
  --slate-l: #edf1f5;

  --blue: #386c99;
  --blue-l: #e6f1fa;
  --purple: #5d4fa0;
  --purple-l: #efebfa;
  --wine: #a8465c;
  --wine-l: #fae9ec;

  --line: #d9e9e0;
  --line-2: #bed9cc;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-s: 0 2px 6px rgba(40, 60, 80, .07);
  --shadow: 0 6px 20px rgba(40, 60, 80, .11);
  --shadow-l: 0 14px 40px rgba(40, 60, 80, .15);

  --maxw: 1120px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
          "游ゴシック Medium", YuGothic, "Meiryo", "MS PGothic", sans-serif;
  --font-round: "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sky-d); }
a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-round); line-height: 1.5; margin: 0; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }

.section { padding: 76px 0; }
.section-tight { padding: 48px 0; }
.section--cream { background: var(--cream-2); }
.section--white { background: var(--paper); }
.section--sky { background: var(--sky-l); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.is-hidden { display: none !important; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 249, 252, .95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 8px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { font-family: var(--font-round); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.logo-text small { display: block; font-size: .62rem; letter-spacing: .18em; color: var(--ink-faint); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
}
.nav a:hover { background: var(--cream-2); }
.nav a[aria-current="page"] { background: var(--sky-l); color: var(--sky-d); }

/* 2026-09-12：ヘッダーの簡素化。常に出すのは「ケアマネのミカタ」「メニュー」だけにして、
   残りのリンクは全画面ではなく、ボタンの下に降りるプルダウンの案内窓にまとめる。
   バッジの色は、AIツール・トップの目次と同じ色分けに揃える。 */
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }

.mobile-nav {
  position: fixed;
  top: 84px;
  right: 20px;
  width: min(400px, calc(100vw - 32px));
  max-height: min(74vh, 620px);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-l);
  z-index: 49;
  padding: 10px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--cream-2); outline: none; }
.mobile-nav a + a { border-top: 1px solid var(--line); }
.mnav-icon {
  flex: none; min-width: 56px; text-align: center; font-size: .68rem; font-weight: 700;
  border-radius: 999px; padding: 3px 8px; letter-spacing: .02em;
}
.mnav-as { background: #e6f1f6; color: #1f5f77; }
.mnav-sk { background: #f7ecd4; color: #6b4d1c; }
.mnav-b1 { background: #efebfa; color: #4d4186; }
.mnav-b2 { background: #e6f1fa; color: #2f5a80; }
.mnav-ai { background: #e8f4ef; color: #2f6650; }
.mnav-yb { background: #e0f2ed; color: #22705a; }
.mnav-sh { background: #fae9ec; color: #8c3a4d; }
.mnav-ks { background: #fdefdf; color: #9a5313; }
.mnav-ab { background: var(--cream-2); color: var(--ink-soft); }
.mnav-group {
  margin: 14px 0 2px; padding: 8px 10px 4px; font-size: .78rem; color: var(--ink-faint);
  letter-spacing: .04em; border-top: 1px solid var(--line);
}
.mnav-group:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  font: inherit;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  text-align: center;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 5px 0 var(--sky-d); }
.btn-primary:hover { background: #649fd0; }
.btn-primary:active { box-shadow: 0 2px 0 var(--sky-d); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); }
.btn-green:hover { background: #4a8f74; }
.btn-green:active { box-shadow: 0 2px 0 var(--green-d); }
.btn-quiet {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line-2);
  box-shadow: var(--shadow-s);
}
.btn-quiet:hover { background: var(--cream-2); }
.btn-lg { padding: 22px 46px; font-size: 1.3rem; }
.btn-sm { padding: 10px 18px; font-size: .95rem; box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- ヒーロー ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -8%, var(--sky-l) 0%, rgba(230, 241, 250, 0) 62%),
    radial-gradient(900px 420px at 8% 108%, var(--green-l) 0%, rgba(232, 244, 239, 0) 60%),
    var(--cream);
  padding: 56px 0 44px;
  border-bottom: 2px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: .01em; }
.hero h1 .accent { color: var(--sky-d); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 20px 0 26px; }
.eyebrow {
  display: inline-block;
  background: var(--sky);
  color: #fff;
  font-weight: 700;
  font-size:15px;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- 見出し ---------- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head h2 .marker {
  background: linear-gradient(transparent 62%, var(--sky-l) 62%);
  padding: 0 .1em;
}
.section-head p { color: var(--ink-soft); margin: 14px auto 0; max-width: 640px; }

/* ---------- カード / グリッド ---------- */
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-s);
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- イラスト枠 ---------- */
.illust { margin: 0; position: relative; }
.illust img { margin-inline: auto; }
.illust-fallback { display: none; }
.illust.is-placeholder .illust-fallback { display: block; }
.illust-fallback svg { width: 100%; height: auto; display: block; }
.illust-cap { font-size: .82rem; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.illust-sm { max-width: 170px; margin-inline: auto; }
.illust-md { max-width: 280px; margin-inline: auto; }
.illust-icon { width: 34px; height: 34px; }

/* ---------- 注意ボックス ---------- */
.notice {
  background: var(--paper);
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notice.notice--soft { border-color: var(--line-2); background: var(--cream-2); }
.notice.notice--danger { border-color: var(--red); background: var(--pink-l); }
.notice h3 { font-size: 1.08rem; margin-bottom: 8px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-icon { flex: none; width: 44px; height: 44px; }

/* ---------- FAQ ---------- */
.faq { border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 14px; overflow: hidden; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-family: var(--font-round);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sky);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq[open] summary::after { content: "－"; }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .faq-body p:first-child { margin-top: 0; }

/* ---------- フッター ---------- */
.site-footer { background: #33424c; color: #dbe6ec; padding: 50px 0 34px; margin-top: 0; }
.site-footer a { color: #bcd6e6; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 12px; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 32px;
  padding-top: 20px;
  font-size:15px;
  color: #a9bcc6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   ツール本体（検索・場面タブ・様式チップ・文例カード）
   ========================================================= */

.jumpnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.jumpnav a {
  display: inline-block;
  background: var(--paper);
  border: 2px solid var(--sky);
  color: var(--sky-d);
  font-weight: 700;
  font-family: var(--font-round);
  font-size: .95rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
}
.jumpnav a:hover { background: var(--sky-l); }

.section-divider {
  text-align: center;
  margin: 60px 0 32px;
  padding-top: 36px;
  border-top: 3px solid var(--line);
  scroll-margin-top: 92px;
}
.section-divider.is-first { margin-top: 0; padding-top: 0; border-top: none; }
.section-divider h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-divider p { color: var(--ink-soft); margin: 10px auto 0; max-width: 640px; }

.panel {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-s);
  scroll-margin-top: 92px;
}

/* 検索欄 */
.search-row { position: relative; margin-bottom: 22px; }
.search-row input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line-2);
  border-radius: 999px;
  padding: 16px 20px 16px 52px;
}
.search-row .search-ico {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--ink-faint);
  pointer-events: none;
}

/* 場面タブ */
.scene-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.scene-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-family: var(--font-round);
  font-size:15px;
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.scene-tab .sc-ico { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--sky-l); display: grid; place-items: center; overflow: hidden; }
.scene-tab .sc-ico svg { width: 16px; height: 16px; }
.scene-tab:hover { border-color: var(--sky); }
.scene-tab.is-active { background: var(--sky); border-color: var(--sky); color: #fff; }
.scene-tab.is-active .sc-ico { background: rgba(255,255,255,.25); }

/* 様式チップ（複数選択） */
.field-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.field-chip {
  border: 2px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.field-chip[data-field="目標とする生活"].is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.field-chip[data-field="現在の状況"].is-active { background: var(--slate); border-color: var(--slate); color: #fff; }
.field-chip[data-field="意欲・意向"].is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.field-chip[data-field="領域における課題"].is-active { background: var(--red); border-color: var(--red); color: #fff; }
.field-chip[data-field="総合的課題"].is-active { background: var(--purple); border-color: var(--purple); color: #fff; }
.field-chip[data-field="目標"].is-active { background: var(--orange); border-color: var(--orange); color:#2a2420; }
.field-chip[data-field="支援内容"].is-active { background: var(--green); border-color: var(--green); color: #fff; }
.field-chip[data-field="総合的な方針"].is-active { background: var(--wine); border-color: var(--wine); color: #fff; }

/* 様式項目 ⇔ 居宅サービス計画書（2）対応表 */
.field-map { margin-top: 16px; }
.field-map-cap { font-size: .84rem; color: var(--ink-soft); margin: 0 0 10px; }
.field-map-hint { display: none; font-size: .74rem; color: var(--ink-faint); margin: -4px 0 8px; }
.field-map-scroll {
  position: relative;
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.field-map-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .8rem; }
.fm-cell {
  border: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
}
.fm-cell.fm-group { background: var(--cream-2); color: var(--ink-faint); font-size: .76rem; letter-spacing: .04em; }
.fm-cell.fm-muted { background: var(--paper); color: var(--ink-faint); font-weight: 500; font-size: .78rem; }
.fm-cell.fm-seikatsu { background: var(--gold-l); }
.fm-cell.fm-genjo { background: var(--slate-l); }
.fm-cell.fm-ikou { background: var(--blue-l); }
.fm-cell.fm-kadai { background: var(--pink-l); }
.fm-cell.fm-sogo { background: var(--purple-l); }
.fm-cell.fm-mokuhyo { background: var(--orange-l); }
.fm-cell.fm-shien { background: var(--green-l); }
.fm-cell.fm-hoshin { background: var(--wine-l); }
.fm-badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  color: #fff;
}
.fm-badge[data-field="目標とする生活"] { background: var(--gold); }
.fm-badge[data-field="現在の状況"] { background: var(--slate); }
.fm-badge[data-field="意欲・意向"] { background: var(--blue); }
.fm-badge[data-field="領域における課題"] { background: var(--red); }
.fm-badge[data-field="総合的課題"] { background: var(--purple); }
.fm-badge[data-field="目標"] { background: var(--orange);color:#2a2420;}
.fm-badge[data-field="支援内容"] { background: var(--green); }
.fm-badge[data-field="総合的な方針"] { background: var(--wine); }
.fm-official { display: block; margin-top: 6px; font-size:15px; font-weight: 500; color: var(--ink-soft); }

.result-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; color: var(--ink-soft); font-size: .95rem; }
.result-summary strong { color: var(--ink); font-size: 1.15rem; font-family: var(--font-round); }

/* 文例カード */
.phrase-grid { display: grid; gap: 16px; }
.phrase-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-s);
}
.phrase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.phrase-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  color: #fff;
}
.field-badge[data-field="目標とする生活"] { background: var(--gold); }
.field-badge[data-field="現在の状況"] { background: var(--slate); }
.field-badge[data-field="意欲・意向"] { background: var(--blue); }
.field-badge[data-field="領域における課題"] { background: var(--red); }
.field-badge[data-field="総合的課題"] { background: var(--purple); }
.field-badge[data-field="目標"] { background: var(--orange);color:#2a2420;}
.field-badge[data-field="支援内容"] { background: var(--green); }
.field-badge[data-field="総合的な方針"] { background: var(--wine); }
.scene-badge { display: inline-block; font-size:15px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--cream-2); color: var(--ink-soft); }
.tag-badge { display: inline-block; font-size: .76rem; color: var(--ink-faint); }
.phrase-text { font-size: 1.02rem; line-height: 1.85; margin: 0 0 14px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--sky);
  background: var(--sky-l);
  color: var(--sky-d);
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--sky); color: #fff; }
.copy-btn.is-copied { background: var(--green); border-color: var(--green); color: #fff; }
.copy-btn svg { width: 16px; height: 16px; }

/* 文例を様式（意欲・意向／課題／総合的課題／目標／支援内容／総合的な方針）ごとに列で表示 */
.phrase-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
}
.phrase-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.phrase-col[data-field="目標とする生活"] { background: var(--gold-l); }
.phrase-col[data-field="現在の状況"] { background: var(--slate-l); }
.phrase-col[data-field="意欲・意向"] { background: var(--blue-l); }
.phrase-col[data-field="領域における課題"] { background: var(--pink-l); }
.phrase-col[data-field="総合的課題"] { background: var(--purple-l); }
.phrase-col[data-field="目標"] { background: var(--orange-l); }
.phrase-col[data-field="支援内容"] { background: var(--green-l); }
.phrase-col[data-field="総合的な方針"] { background: var(--wine-l); }
.phrase-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.phrase-col-count { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.phrase-col-list { display: flex; flex-direction: column; gap: 12px; }
.phrase-col-empty { font-size: .85rem; color: var(--ink-faint); padding: 10px 2px; }
.phrase-card--col { padding: 16px 18px; }
.phrase-card--col .phrase-head { justify-content: flex-start; margin-bottom: 8px; }
.phrase-card--col .phrase-text { font-size: .96rem; margin-bottom: 12px; }
.col-more { width: 100%; margin-top: 4px; font-size:15px; padding: 8px 14px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 10px; }

/* もっと見る */
.loadmore-row { text-align: center; margin-top: 22px; }

/* ヒーロー右カラムのプレビュー（実際のイラストを少しだけ見せる） */
.hero-preview {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.hero-preview-cap { font-size: .85rem; color: var(--ink-faint); text-align: center; margin: 0 0 16px; letter-spacing: .04em; }
.hero-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-preview-item { text-align: center; background: var(--cream-2); border-radius: var(--radius); padding: 14px 10px 12px; }
.hero-preview-item img { max-width: 84px; margin-inline: auto; }
.hero-preview-item span { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .wrap-narrow { width: min(100% - 28px, var(--maxw)); }
  .section { padding: 48px 0; }
  .panel { padding: 22px 18px 24px; border-radius: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 20px 28px; font-size: 1.15rem; width: 100%; }
  .notice { flex-direction: column; gap: 12px; }
  .phrase-head { flex-direction: column; align-items: flex-start; }
  .field-map-hint { display: block; }
  .field-map-scroll::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255,255,255,0), var(--paper));
    pointer-events: none;
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}
@media print {
  .site-header, .mobile-nav, .site-footer, .btn, .search-row, .scene-tabs, .field-chips, .field-map { display: none !important; }
}

/* 2026-09-13：ヘッダーの「トップへ」「ケアマネのミカタ」を、ミカタのロゴ＋文字の入口にそろえる。
   高さはとなりの「メニュー」ボタン（44px前後）に合わせる。色はトップのロゴと同じローズ。 */
.home-brand {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 15px 6px 9px;
  border: 2px solid #f0dcda; border-radius: 999px; background: #fff;
  color: #8c3a4d; text-decoration: none; white-space: nowrap;
  font-family: var(--font-round); font-weight: 700; font-size: .95rem; line-height: 1.2; letter-spacing: .02em;
  transition: background-color .12s ease, border-color .12s ease;
}
.home-brand:hover { background: #fae9ec; border-color: #e0c3c0; }
.home-brand:focus-visible { outline: 3px solid #a8465c; outline-offset: 2px; }
.home-brand-mark { width: 28px; height: 28px; flex: none; }

/* スマホ幅ではロゴだけにする（文字は読み上げ用に残す）。
   文字まで出すと、左のロゴ文字が「ケアプラ｜ン文例集」と折れて見出しが崩れるため（2026-09-13 実測）。 */
@media (max-width: 600px) {
  .home-brand { padding: 6px; gap: 0; }
  .home-brand-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* tap-shortcut-0918 */
.fm-badge.is-tap { cursor: pointer; }
.fm-badge.is-tap::after { content: "▸"; margin-left: 5px; font-size: .92em; opacity: .9; }
.fm-badge.is-tap:hover { filter: brightness(1.08); }
.fm-badge.is-tap:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hero-preview-item[data-scene] { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.hero-preview-item[data-scene]:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60,58,55,.14); }
.hero-preview-item[data-scene]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.hero-preview-item[data-scene] > span::after { content: " ▸"; }
.scene-tab.is-justpicked, .field-chip.is-justpicked { animation: cmTapFlash 1.25s ease; }
@keyframes cmTapFlash {
  0%, 100% { box-shadow: none; }
  18%, 62% { box-shadow: 0 0 0 4px rgba(184,101,15,.42); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-preview-item[data-scene] { transition: none; }
  .scene-tab.is-justpicked, .field-chip.is-justpicked { animation: none; }
}
/* /tap-shortcut-0918 */
/* tap-shortcut-0918-cap */
.hp-tap { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
/* /tap-shortcut-0918-cap */

/* scene-grid-0921 */
/* 場面の一覧：カードを並べて、縦に長くしない */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; margin-top: 8px; }
.scene-grid .scene-link { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; }
.scene-grid .scene-link p { flex: 1 1 auto; min-width: 0; }
.scene-grid .scene-link > span { flex: 0 0 auto; }
.scene-grid .scene-link p { margin: 0; line-height: 1.6; }
.scene-grid .scene-link strong { display: block; font-size: 1.02rem; }   /* 行の長さをそろえるため（inlineだと balance が効かない） */
.scene-grid .scene-link:hover { border-color: var(--sky, #4a7fa8); }
.section-tight--list { padding: 34px 0 26px; }
/* スマホは2列。矢印は隠して、文字の場所を広く取る（カード全体が押せる） */
@media (max-width: 520px) {
  .scene-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scene-grid .scene-link { padding: 11px 12px; }
  .scene-grid .scene-link > span { display: none; }
  .scene-grid .scene-link strong { font-size: .98rem; }
  .section-tight--list { padding: 24px 0 18px; }
}
@media (max-width: 330px) { .scene-grid { grid-template-columns: 1fr; } }
/* /scene-grid-0921 */

/* MARK b1yb_0922 */
/* ichiran2_0922 */
.sc2-hero { padding: 22px 0 6px; }
.sc2-h1 { font-size: clamp(1.45rem, 3.4vw, 2.05rem); margin: 10px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.sc2-total { font-size: .6em; background: var(--sky-d, #2f5a80); color: #fff; border-radius: 999px; padding: 3px 14px; letter-spacing: .04em; }
.sc2-lead { max-width: 760px; color: var(--ink-soft); line-height: 1.9; margin: 0 0 18px; }
.sc2-lead strong { color: var(--sky-d, #2f5a80); }
.sc2-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: st; }
.sc2-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line, #dfe6ea); border-radius: 14px; padding: 12px 14px; position: relative; }
.sc2-steps li::before { content: counter(st); position: absolute; top: -10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; background: #c46a3a; color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.sc2-steps svg { width: 40px; height: 40px; flex: none; }
.sc2-steps span { display: flex; flex-direction: column; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.sc2-steps b { font-size: 1rem; color: var(--ink); }
.sc2-math { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-weight: 700; color: var(--ink-soft); }
.sc2-math-b { background: var(--sky-l); color: var(--sky-d, #2f5a80); border-radius: 8px; padding: 2px 10px; }
.sc2-math-t { background: var(--sky-d, #2f5a80); color: #fff; }
.sc2-math-d { font-weight: 400; font-size: .86rem; margin-left: 6px; }
.sc2-list { padding: 18px 0 30px; }
.sc2-h2 { font-size: 1.15rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sc2-h2 small { font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
.sc2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sc2-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1.5px solid var(--line, #dfe6ea); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sc2-card:hover, .sc2-card:focus-visible { border-color: var(--sky, #4a7fa8); box-shadow: 0 6px 18px rgba(47,90,128,.12); transform: translateY(-2px); outline: none; }
.sc2-ill { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--sky-l); display: grid; place-items: center; }
.sc2-ill svg { width: 58px; height: 58px; }
.sc2-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sc2-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.sc2-eg { font-size: .88rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; word-break: auto-phrase; }
.sc2-eg small { display: block; font-size: .72rem; color: var(--ink-soft); letter-spacing: .05em; }
.sc2-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sc2-tags i { font-style: normal; font-size: .74rem; background: #f6f3ef; color: #5f5a56; border-radius: 999px; padding: 1px 9px; }
.sc2-foot { display: flex; align-items: center; gap: 4px; font-size: .84rem; color: var(--ink-soft); margin-top: 2px; }
.sc2-foot b { color: var(--sky-d, #2f5a80); font-size: 1rem; }
.sc2-go { margin-left: auto; color: var(--sky-d, #2f5a80); font-weight: 700; }
@media (max-width: 720px) {
  .sc2-steps { grid-template-columns: 1fr; }
  .sc2-grid { grid-template-columns: 1fr; }
  .sc2-ill { width: 60px; height: 60px; } .sc2-ill svg { width: 48px; height: 48px; }
  .sc2-math-d { margin-left: 0; width: 100%; }
}
/* end ichiran2_0922 */

/* scn_0922 */
.scn-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.scn-ill { background: #fff; border: 1.5px solid var(--line, #dfe6ea); border-radius: 22px; padding: 18px 16px 14px; text-align: center; }
.scn-ill-pic { width: 128px; height: 128px; margin: 0 auto 8px; border-radius: 26px; background: var(--sky-l); display: grid; place-items: center; }
.scn-ill-pic svg { width: 104px; height: 104px; }
.scn-ill-h { font-size: .74rem; color: var(--ink-soft); letter-spacing: .05em; margin: 0 0 6px; }
.scn-ill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.scn-ill-tags i { font-style: normal; font-size: .74rem; background: #f6f3ef; color: #5f5a56; border-radius: 999px; padding: 1px 9px; }
.scn-sw { margin: 14px 0 16px; }
.scn-sw-h { font-size: .8rem; color: var(--ink-soft); margin: 0 0 6px; }
.scn-sw-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.scn-sw-i { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line, #dfe6ea); background: #fff; text-decoration: none; color: var(--ink-soft); font-size: .72rem; line-height: 1.3; text-align: center; }
.scn-sw-i svg { width: 32px; height: 32px; }
.scn-sw-i:hover { border-color: var(--sky, #4a7fa8); color: var(--ink); }
.scn-sw-i.is-cur { background: var(--sky-l); border-color: var(--sky-d, #2f5a80); color: var(--sky-d, #2f5a80); font-weight: 700; }
@media (max-width: 760px) {
  .scn-hero { grid-template-columns: 1fr; gap: 12px; }
  .scn-ill { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; }
  .scn-ill-pic { width: 72px; height: 72px; margin: 0; border-radius: 16px; flex: none; }
  .scn-ill-pic svg { width: 58px; height: 58px; }
  .scn-ill-tags { justify-content: flex-start; }
}
/* end scn_0922 */
/* /MARK b1yb_0922 */
