@charset "utf-8";

/* =========================================================
   Premo Care — 自費訪問リハビリ
   Palette: logo green (#2f8f5b) × orange (#f39a3d) × light gray
   高齢のご本人・ご家族・ケアマネジャーが読む前提で、
   本文17px / 行間1.9 / 高コントラストを基準にしています。
   ========================================================= */

:root {
  --green-900: #14512f;
  --green-700: #1f6f46;
  --green-600: #2f8f5b;
  --green-500: #45a86c;
  --green-100: #d9eee2;
  --green-50:  #eef7f1;

  --orange-600: #d97c14;
  --orange-500: #f39a3d;
  --orange-100: #ffeed9;

  --ink:   #22312a;
  --muted: #5d6d64;
  --line:  #dce7e0;
  --white: #ffffff;
  --bg:    #f7faf8;

  --shadow-sm: 0 2px 8px rgba(31, 111, 70, .06);
  --shadow:    0 10px 30px rgba(31, 111, 70, .09);
  --shadow-lg: 0 18px 48px rgba(31, 111, 70, .14);

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 26px;

  --wrap: 1120px;
  --wrap-narrow: 800px;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic Medium", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 固定ヘッダー分だけアンカー位置をずらす */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }

h1, h2, h3 { line-height: 1.45; letter-spacing: .01em; margin: 0; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

.center { text-align: center; }
.sp-only { display: none; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 143, 91, .28);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }

.btn-ghost {
  background: #fff;
  color: var(--green-700);
  border: 2px solid var(--green-100);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--green-500); transform: translateY(-2px); }

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--green-700);
  flex-shrink: 0;
}
.brand-mark { width: 62px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 19px; letter-spacing: .04em; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

/* 開閉用のチェックボックス。見た目は消すが、キーボードでは触れるようにする */
.nav-toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* 「三」ボタン。1199px 以下でだけ出す */
.nav-toggle { display: none; }

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--green-700); border-bottom-color: var(--green-500); }

.btn-tel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 22px;
  border-radius: var(--r);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  text-decoration: none;
  line-height: 1.35;
  flex-shrink: 0;
}
.btn-tel-header:hover { background: var(--green-100); }
.tel-label { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.tel-num { font-size: 20px; font-weight: 800; letter-spacing: .02em; }

/* ============================= Hero ============================= */
.hero {
  background:
    radial-gradient(90% 120% at 88% 12%, var(--orange-100) 0%, rgba(255,238,217,0) 55%),
    linear-gradient(170deg, var(--green-50) 0%, #fbfdfb 78%);
  padding: 74px 0 86px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green-600);
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--green-600); }
.lead { font-size: 17.5px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-700);
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-500)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.hero-visual img {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 30px rgba(31, 111, 70, .16));
}

/* =========================== Sections =========================== */
.section { padding: 84px 0; }
.section-tint { background: var(--green-50); }

/* 生活サポートは Premo Care の差別化ポイントなので、
   ブランドのサブカラー（オレンジ）側に振って緑の連続を断ち切る */
.section-accent {
  background: linear-gradient(180deg, #fff9f1 0%, #fffdfa 100%);
  border-block: 1px solid var(--orange-100);
}
.section-accent .eyebrow { color: var(--orange-600); }
.section-accent .service-card { border-color: #f6e3ca; }
.section-accent .service-card figcaption { color: var(--orange-600); }

.section-title {
  font-size: clamp(25px, 3.1vw, 35px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--muted);
  margin: 0 auto 44px;
  max-width: 40em;
}
.section-title.center + .service-grid,
.section-title.center + .feature-grid,
.section-title.center + .faq-list,
.section-title.center + .cm-grid,
.section-title.center + .flow-list,
.section-title.center + .greeting,
.section-title.center + .target-list { margin-top: 44px; }

/* --------------------------- Features --------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* 写真は正方形の原寸をそのまま。枠と比率を合わせて切り取りを起こさない */
.feature-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
/* 番号は写真と本文の境目にまたがらせる */
.feature-body {
  position: relative;
  padding: 40px 28px 30px;
}
.feature-no {
  position: absolute;
  top: -26px;
  left: 28px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(47, 143, 91, .3);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--green-700);
  margin: 0 0 12px;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --------------------------- Service ---------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* #service は「発語・飲み込み練習」を外して5枚になった（2026-08-17・提供不可のため）。
   3列だと最終行の2枚が左に寄って右下が空くので、6列に割って中央へ寄せる。
   6列 span2 のカード幅は 3列のときと完全に同じ ((W-48)/3) になる。
   ⚠️ 900px 以下は既存の指定（1列／2列）に任せるため min-width で囲っている。
   #support は6枚のままなので、この規則は #service だけに掛ける。 */
@media (min-width: 901px) {
  #service .service-grid { grid-template-columns: repeat(6, 1fr); }
  #service .service-card { grid-column: span 2; }
  #service .service-card:nth-child(4) { grid-column: 2 / span 2; }
}
.service-card {
  margin: 0;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
/* イラストは全12枚とも正方形（1254×1254 の個別生成）。
   枠も正方形にしてあるので、切り取りも余白も一切発生しない。
   ⚠️ ここを 16/10 などに変えると、また上下が削られて頭が切れる。 */
.service-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.service-card figcaption {
  padding: 16px 12px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-700);
}
.service-note {
  margin-top: 40px;
  background: #fff;
  border-left: 6px solid var(--orange-500);
  border-radius: var(--r);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.service-note p { margin: 0 0 8px; color: var(--muted); }
.service-note p:last-child { margin-bottom: 0; }

/* 次セクションへの前振り。オレンジで「生活サポート」を光らせて、
   同じくオレンジ基調の #support へ視線を渡す。下の矢印はその合図。 */
.section-bridge {
  margin: 52px auto 0;
  max-width: 26em;
  text-align: center;
  font-size: clamp(21px, 2.8vw, 31px);
  font-weight: 800;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--ink);
}
.section-bridge em {
  font-style: normal;
  color: var(--orange-600);
}
.section-bridge::after {
  content: "";
  display: block;
  width: 16px; height: 16px;
  margin: 26px auto 0;
  border-right: 3px solid var(--orange-500);
  border-bottom: 3px solid var(--orange-500);
  transform: rotate(45deg);
}

/* ------------------------- Life support ------------------------- */
.support-closing {
  margin-top: 40px;
  text-align: center;
}
.support-closing p { margin: 0; color: var(--muted); }
.support-catch {
  margin-top: 10px !important;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 800;
  color: var(--orange-600) !important;
  letter-spacing: .02em;
}

/* ----------------------- 区切りの写真帯 ------------------------- */
/* 元画像が 2:1（1253×629）なので、そのままの比率で出す。
   ⚠️ 高さを決めて cover で切ると、上を残せば施術する手が、
   下を残せば施術者の顔が切れる。どちらも成立しないので切らない。 */
.photo-band {
  width: min(100% - 40px, var(--wrap));
  margin: 0 auto;
  padding: 64px 0;
}
.photo-band img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* 1.4:1 くらいの写真用。全幅(1120px)だと高さ790pxになって帯にならず、
   かといって 2:1 に切ると脚を支える手が落ちて構図が壊れる。
   → 切らずに幅を絞って収める。 */
.photo-band-narrow { width: min(100% - 40px, 820px); }

/* ---------------------------- Price ----------------------------- */
/* 基本の3プラン。10回コースは性格が違うので下に独立させている */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  position: relative;
  background: #fff;
  /* 初回体験(緑)・おすすめ(橙)は 2px の色枠が付く。
     枠のない「自費訪問リハビリ」だけ背景に溶けてしまうので、
     同じ太さの薄いグレーで受ける */
  border: 2px solid #d8e0db;
  border-radius: var(--r-lg);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card-trial { border: 2px solid var(--green-500); background: linear-gradient(180deg, var(--green-50), #fff 55%); }
.price-card-reco  { border: 2px solid var(--orange-500); background: linear-gradient(180deg, var(--orange-100), #fff 55%); }

.price-badge {
  position: absolute;
  top: -15px;
  left: 28px;
  background: var(--green-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.price-badge-reco { background: var(--orange-600); }

.price-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--green-700);
  margin-bottom: 10px;
}
.price-desc { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.price-rows { list-style: none; margin: auto 0 0; padding: 0; }
.price-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}
.min {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--green-500);
  border-radius: 999px;
  padding: 3px 16px;
  flex-shrink: 0;
  align-self: center;
}
.yen { font-size: 15px; color: var(--muted); white-space: nowrap; }
.yen b {
  font-size: 33px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-right: 3px;
}
.ref { color: var(--orange-600); font-weight: 700; text-decoration: none; }

/* ------------------- 10回コース（独立ブロック） ------------------- */
.price-course {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 34px 42px;
  box-shadow: var(--shadow);
}
.price-course-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 4px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.price-course h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.price-course-head p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }

.price-rows-course { min-width: 330px; }
.price-rows-course li { border-top-color: rgba(255, 255, 255, .3); }
.price-rows-course li:first-child { border-top: none; }
.price-rows-course .min { background: rgba(255, 255, 255, .22); }
.price-rows-course .yen { color: rgba(255, 255, 255, .85); white-space: normal; text-align: right; }
.price-rows-course .yen b { color: #fff; }
/* 1回あたりの単価。95,000÷10=9,500 / 130,000÷10=13,000（いずれも割り切れる） */
.per-unit {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .78);
}

/* ------- 見出し直後の「メッセージ＋写真」2カラム（料金・対象者で共用） ------- */
.media-intro {
  margin: 40px 0 48px;
  display: grid;
  gap: 48px;
  align-items: center;
}
/* 写真を大きめに取りたいので、写真側を 1.2fr にする */
.media-intro--text-left  { grid-template-columns: 1fr 1.2fr; }
.media-intro--photo-left { grid-template-columns: 1.2fr 1fr; }

.media-intro p {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.95;
  letter-spacing: .01em;
  color: var(--ink);
}
.media-intro figure { margin: 0; }
.media-intro img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* ------------- 対応エリア／当日変更（注記から独立させた） ------------- */
.price-highlights {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.price-highlight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 2px solid var(--green-100);
  border-radius: var(--r);
  padding: 24px 28px 24px 82px;
  box-shadow: var(--shadow-sm);
}
/* 左側のアイコン。淡いグリーンの丸に白のマーク */
.price-highlight::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--green-600);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}
.ph-area::before {
  /* 地図ピン */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0116 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.ph-flex::before {
  /* 入れ替えの矢印 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h13l-4-4M21 16H8l4 4'/%3E%3C/svg%3E");
}
.ph-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green-600);
}
.ph-value {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
}
.ph-note { font-size: 13.5px; color: var(--muted); }

.price-notes {
  margin-top: 22px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r);
  padding: 24px 28px;
  font-size: 15px;
  color: var(--muted);
}
.price-notes p { margin: 0 0 12px; }
.price-notes p:last-child { margin-bottom: 0; }
.price-notes b { color: var(--ink); }

/* ---------------------------- Target ---------------------------- */
.target-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.target-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--r);
  padding: 20px 26px;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.target-list li::before {
  content: "";
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8f5b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ----------------------------- Flow ----------------------------- */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 14px; height: 14px;
  border-top: 3px solid var(--green-500);
  border-right: 3px solid var(--green-500);
  transform: translateY(-50%) rotate(45deg);
}
/* シンボルマークと Step ラベルを横並びにして、見出しの上に置く */
.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
/* 元画像の背景は --green-50 に揃えてあるので、丸く抜くだけで馴染む */
.flow-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
}
.flow-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--orange-600);
  background: var(--orange-100);
  border-radius: 999px;
  padding: 3px 16px;
}
.flow-step h3 { font-size: 20px; font-weight: 800; color: var(--green-700); margin-bottom: 10px; }
.flow-step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --------------------------- Greeting --------------------------- */
.greeting {
  /* 写真の列を本文の半分＝カード内幅のちょうど1/3にする */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 52px;
  align-items: start;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 52px 56px;
  box-shadow: var(--shadow);
  max-width: 1040px;
  margin-inline: auto;
}
.greeting-body p { margin: 0 0 20px; }
.greeting-body p:last-child { margin-bottom: 0; }

.greeting-person { text-align: center; }
/* 画像そのものが円形に切り抜かれている（背景は透過）ので、
   border-radius も枠線も当てない。影は drop-shadow で輪郭に沿わせる */
.greeting-photo {
  /* 列は1/3のまま、写真の幅だけで大きさを決める。
     列ごと狭めると肩書きの行が窮屈に折り返すため */
  width: 75%;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 10px 22px rgba(31, 111, 70, .21));
}
.signature {
  margin: 22px 0 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signature-role { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.signature-name { font-size: 25px; font-weight: 800; letter-spacing: .12em; color: var(--green-700); }

/* ------------------------ Care Managers ------------------------- */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-50), #fff 70%);
  border: 1px solid var(--green-100);
  border-radius: var(--r);
  padding: 28px 30px;
}
.cm-card h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 見出し頭のアイコン。角丸タイルに線画を1つ。
   緑・オレンジを交互にして、4枚並んだときに単調にならないようにする */
.cm-card h3::before {
  content: "";
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}
.cm-clock h3::before, .cm-check h3::before { background-color: var(--green-100); }
.cm-home h3::before,  .cm-mail h3::before  { background-color: var(--orange-100); }

/* 時計＝回数・時間の制限を超えられること */
.cm-clock h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8f5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
}
/* 家＝暮らし・ご自宅での生活サポート */
.cm-home h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97c14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M9.75 20v-5.5h4.5V20'/%3E%3C/svg%3E");
}
/* チェック＝介護保険との併用が可能 */
.cm-check h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8f5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.2l2.8 2.8L16 9.8'/%3E%3C/svg%3E");
}
/* 封筒＝毎月の報告（電話・メール） */
.cm-mail h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97c14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
}
.cm-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ------------------------------ FAQ ----------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 60px 22px 62px;
  position: relative;
  font-weight: 700;
  font-size: 17px;
  color: var(--green-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 30px;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--green-600);
  border-bottom: 2.5px solid var(--green-600);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq-item summary:hover { background: var(--green-50); }

.faq-answer {
  padding: 0 30px 24px 62px;
  position: relative;
  color: var(--muted);
}
.faq-answer::before {
  content: "A";
  position: absolute;
  left: 22px;
  top: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 15px;
  font-weight: 800;
}
.faq-answer p { margin: 0; }

/* ---------------------------- Contact --------------------------- */
.section-contact {
  background: linear-gradient(160deg, var(--green-600), var(--green-900));
  color: #fff;
}
.section-contact .eyebrow { color: var(--green-100); }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: rgba(255, 255, 255, .85); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-card-static:hover { transform: none; }
.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  background: var(--green-600);
  border-radius: 999px;
  padding: 3px 18px;
}
.contact-value {
  font-size: 27px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: .01em;
  word-break: keep-all;
  overflow-wrap: normal;
}
/* メールアドレスは途中改行させない（幅に合わせて縮める） */
.contact-value-mail { font-size: clamp(16px, 3.4vw, 22px); }
.contact-value-addr { font-size: 18px; line-height: 1.7; word-break: normal; }
.contact-sub { font-size: 13.5px; color: var(--muted); }

/* --------------------- 問い合わせフォーム（自前） ---------------------
   Cloudflare Pages Functions（/api/enquiry）経由でApps Scriptへ中継する。
   詳細は「フォーム移行手順.md」を参照。 */
.contact-form {
  margin-top: 44px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px 34px 24px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--green-700);
  margin: 0 0 8px;
  text-align: center;
}
.contact-form-lead {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.contact-form-row { margin-bottom: 22px; }
.contact-form-row label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form-required {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-600);
  background: var(--orange-100);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
}
.contact-form-row input,
.contact-form-row textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color .15s ease;
}
.contact-form-row input:focus,
.contact-form-row textarea:focus { border-color: var(--green-500); }
.contact-form-row textarea { resize: vertical; min-height: 120px; }

/* ボットよけの隠し項目。人には見えないので、埋まっていたら機械と判断する */
.contact-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-form-submit { border: 0; cursor: pointer; }
.contact-form-submit[disabled] { opacity: .5; cursor: not-allowed; }

.contact-form-msg {
  margin-top: 18px;
  display: none;
  font-size: 15px;
  line-height: 1.8;
  padding: 14px 18px;
  border-radius: var(--r-sm);
}
.contact-form-msg.err {
  display: block;
  border-left: 4px solid var(--orange-600);
  background: var(--orange-100);
  color: #8a4a10;
}

.contact-form-thanks {
  display: none;
  border-left: 4px solid var(--green-600);
  background: var(--green-50);
  border-radius: var(--r-sm);
  padding: 26px 24px;
}
.enquiry-form.done .contact-form-body { display: none; }
.enquiry-form.done .contact-form-thanks { display: block; }
.contact-form-thanks h4 { font-size: 19px; color: var(--green-700); margin: 0 0 10px; }
.contact-form-thanks p { font-size: 15px; color: var(--muted); margin: 0; }
.contact-form-thanks a { color: var(--green-700); font-weight: 700; }

/* ---------------------------- Footer ---------------------------- */
.site-footer {
  background: #16241c;
  color: rgba(255, 255, 255, .78);
  padding: 54px 0 26px;
  font-size: 14.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 90px; }
.footer-brand p { margin: 0; font-weight: 700; color: #fff; line-height: 1.7; }
.footer-brand span { font-weight: 400; font-size: 13.5px; color: rgba(255, 255, 255, .7); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 560px;
}
.footer-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-nav a:hover { color: var(--orange-500); }

.copyright {
  margin: 44px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
}

/* ------------------------- Mobile CTA bar ----------------------- */
.mobile-cta { display: none; }

/* =========================== Responsive ========================= */
/* ナビ7項目＋電話ボタンが収まる下限は約1160px。
   これを下回るとヘッダーが横にはみ出すため、ナビを隠す */
@media (min-width: 1200px) and (max-width: 1340px) {
  .nav { gap: 14px; font-size: 13.5px; }
}

@media (max-width: 1199px) {
  .header-inner { justify-content: space-between; }

  /* --- ここから ハンバーガーメニュー --- */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    user-select: none;
    color: var(--green-700);
  }
  .nav-toggle:hover { background: var(--green-50); }
  /* キーボード操作時に、ボタンとして光らせる */
  .nav-toggle-input:focus-visible + .nav + .nav-toggle {
    outline: 3px solid var(--orange-500);
    outline-offset: 2px;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--green-700);
    transition: transform .22s ease, opacity .18s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after  { top: 8px; }

  /* 「三」だけだとメニューだと気づかれないことがあるので文字を添える */
  .nav-toggle-text {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
  }

  /* 開いたら × に変える */
  .nav-toggle-input:checked + .nav + .nav-toggle .nav-toggle-bars {
    background: transparent;
  }
  .nav-toggle-input:checked + .nav + .nav-toggle .nav-toggle-bars::before {
    top: 0; transform: rotate(45deg);
  }
  .nav-toggle-input:checked + .nav + .nav-toggle .nav-toggle-bars::after {
    top: 0; transform: rotate(-45deg);
  }

  /* パネルはヘッダーの下に落とす */
  .nav { display: none; }
  .nav-toggle-input:checked + .nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 6px 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  /* 指で押しやすいよう、1項目を横いっぱい・高めに */
  .nav-toggle-input:checked + .nav a {
    display: block;
    padding: 15px clamp(20px, 5vw, 40px);
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--green-50);
    border-left: 4px solid transparent;
  }
  .nav-toggle-input:checked + .nav a:last-child { border-bottom: none; }
  .nav-toggle-input:checked + .nav a:hover {
    background: var(--green-50);
    border-left-color: var(--green-500);
    color: var(--green-700);
  }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 260px; }
  .hero { padding: 46px 0 58px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }

  .feature-grid,
  .service-grid,
  .price-grid,
  .flow-list,
  .cm-grid,
  .contact-grid,
  .target-list { grid-template-columns: 1fr; }

  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -21px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .price-highlights { grid-template-columns: 1fr; gap: 14px; }

  .media-intro { grid-template-columns: 1fr; gap: 24px; text-align: center; margin: 32px 0 36px; }
  .media-intro p br { display: none; }

  .price-course {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px 26px;
    text-align: center;
  }
  .price-rows-course { min-width: 0; }

  .greeting {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 24px;
  }
  .greeting-photo { width: min(195px, 54%); }
  .section { padding: 60px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .sp-only { display: inline; }
  .brand-mark { width: 50px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  /* スマホでは画面下の固定バーに「電話で相談」があるので、
     ヘッダーの電話ボタンは重複。外して「三」の場所を確保する
     （両方置くと 375px で横にはみ出す） */
  .btn-tel-header { display: none; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card figcaption { font-size: 14.5px; padding: 12px 8px 14px; }

  .price-card { padding: 30px 22px 26px; }
  .yen b { font-size: 29px; }
  .price-rows li { flex-wrap: wrap; }

  .faq-item summary { padding: 18px 46px 18px 56px; font-size: 16px; }
  .faq-answer { padding: 0 22px 20px 56px; }

  .contact-form { padding: 24px 16px 18px; }
  .contact-form-actions { flex-direction: column; align-items: stretch; }
  .contact-form-submit { width: 100%; }

  .footer-inner { flex-direction: column; gap: 26px; }

  /* 画面下部の固定CTA（電話・メール） */
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta a {
    display: grid;
    place-items: center;
    padding: 14px 8px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
  }
  .mobile-cta-tel  { background: var(--green-600); color: #fff; }
  .mobile-cta-mail { background: var(--orange-500); color: #3b2a10; }

  body { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .site-header, .mobile-cta, .hero-cta { display: none; }
  body { font-size: 12pt; background: #fff; }
  .section { padding: 20px 0; page-break-inside: avoid; }
}
