@charset "UTF-8";

/* =========================================================
   ケアプラン文例集（第1表）  共通スタイル
   「ケアプラン文例集」第2表サイトと同じ設計思想（文字大きめ・押す場所大きめ）を
   引き継ぎつつ、メインカラー・背景をバイオレットにして第2表（スカイブルー）と
   ひと目で見分けられるようにしている。
   ========================================================= */

:root {
  --cream: #f8f6fc;
  --cream-2: #f0ecf9;
  --paper: #ffffff;
  --ink: #2f3c46;
  --ink-soft: #5c6d78;
  --ink-faint: #8697a2;

  --brand: #7c6cc4;
  --brand-d: #5d4fa0;
  --brand-l: #efebfa;

  --sky: #4f8fc4;
  --sky-d: #386c99;
  --sky-l: #e6f1fa;

  --green: #4f9d80;
  --green-d: #3b7d64;
  --green-l: #e8f4ef;

  --orange: #ea9540;
  --orange-d: #cf7825;
  --orange-l: #fdefdf;

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

  --line: #ded6ee;
  --line-2: #c7bbe0;

  --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(--brand-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(--brand-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(248, 246, 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; }
.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(--brand-l); color: var(--brand-d); }

.nav-toggle {
  display: none;
  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;
  inset: 74px 0 0 0;
  background: var(--cream);
  z-index: 49;
  padding: 24px 20px 60px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 18px 16px;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- ボタン ---------- */
.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(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-d); }
.btn-primary:hover { background: #649fd0; }
.btn-primary:active { box-shadow: 0 2px 0 var(--brand-d); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); }
.btn-green:hover { background: #5cae90; }
.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(--brand-l) 0%, rgba(239, 235, 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(--brand-d); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 20px 0 26px; }
.eyebrow {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  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(--brand-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(--brand);
  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: .85rem;
  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(--brand);
  color: var(--brand-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(--brand-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: .92rem;
  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(--brand-l); display: grid; place-items: center; overflow: hidden; }
.scene-tab .sc-ico svg { width: 16px; height: 16px; }
.scene-tab:hover { border-color: var(--brand); }
.scene-tab.is-active { background: var(--brand); border-color: var(--brand); 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(--red); border-color: var(--red); color: #fff; }
.field-chip[data-field="家族の意向"].is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.field-chip[data-field="課題分析結果"].is-active { background: var(--green); border-color: var(--green); color: #fff; }
.field-chip[data-field="総合的な援助の方針"].is-active { background: var(--sky); border-color: var(--sky); color: #fff; }

/* 様式項目 ⇔ 居宅サービス計画書（1）の様式イメージ */
.field-map { margin-top: 16px; }
.field-map-cap { font-size: .84rem; color: var(--ink-soft); margin: 0 0 10px; }
.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(--red); }
.fm-badge[data-field="家族の意向"] { background: var(--orange); }
.fm-badge[data-field="課題分析結果"] { background: var(--green); }
.fm-badge[data-field="総合的な援助の方針"] { background: var(--sky); }
.fm-official { display: block; margin-top: 6px; font-size: .72rem; font-weight: 500; color: var(--ink-soft); }

/* 様式全体を模したミニ帳票イメージ（該当欄だけ色付けし、それ以外は淡色で「文脈」として見せる） */
.form-mock {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  font-size: .8rem;
}
.form-mock-title {
  text-align: center;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
  padding: 10px;
  background: var(--cream-2);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.form-mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 4px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .66rem;
}
.form-mock-row:last-child { border-bottom: none; }
.form-mock-row .fm-blank {
  flex: 1 1 40px;
  min-width: 24px;
  height: 1px;
  border-bottom: 1px dashed var(--line);
  align-self: flex-end;
  margin-bottom: 2px;
}
.form-mock-row .fm-checks { color: var(--ink-faint); }
.form-mock-box {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.form-mock-box:last-child { border-bottom: none; }
.form-mock-box-title {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.form-mock-box--muted { color: var(--ink-faint); }
.form-mock-box--muted .form-mock-box-title { color: var(--ink-faint); font-weight: 500; }
.form-mock-box--highlight { background: var(--cream); padding: 14px 12px; }
.form-mock-subrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fm-sub {
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  border: 1px solid var(--line);
}
.fm-sub.fm-user { background: var(--pink-l); }
.fm-sub.fm-family { background: var(--orange-l); }
.fm-sub.fm-assess { background: var(--green-l); }
.form-mock-box--policy { background: var(--sky-l); text-align: center; border: none; }

.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(--red); }
.field-badge[data-field="家族の意向"] { background: var(--orange); }
.field-badge[data-field="課題分析結果"] { background: var(--green); }
.field-badge[data-field="総合的な援助の方針"] { background: var(--sky); }
.scene-badge { display: inline-block; font-size: .78rem; 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(--brand);
  background: var(--brand-l);
  color: var(--brand-d);
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--brand); 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(--pink-l); }
.phrase-col[data-field="家族の意向"] { background: var(--orange-l); }
.phrase-col[data-field="課題分析結果"] { background: var(--green-l); }
.phrase-col[data-field="総合的な援助の方針"] { background: var(--sky-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: .86rem; 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: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@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; }
  .form-mock-row { font-size: .62rem; }
}
@media print {
  .site-header, .mobile-nav, .site-footer, .btn, .search-row, .scene-tabs, .field-chips, .field-map { display: none !important; }
}
