/*
Theme Name: Kubota Harikyu
Description: 丸亀市の訪問はりきゅう（はり師・きゅう師 窪田智志）公式サイト用オリジナルテーマ。静的サイトからの移行版。
Author: Kubota Satoshi
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kubota-harikyu
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --green-900: #0d3d2e;
  --green-800: #145a42;
  --green-700: #1e7255;
  --green-600: #2e8b6e;
  --green-500: #3aaa88;
  --green-400: #5cc4a0;
  --green-300: #89d9be;
  --green-100: #e0f5ee;
  --green-50:  #f0faf6;

  --blue-600:  #2563a8;
  --blue-100:  #dbeafe;
  --orange-600:#c47a00;
  --orange-100:#fff7e0;
  --red-500:   #dc3545;

  /* Neutral */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  /* Tokens */
  --primary:    var(--green-600);
  --primary-d:  var(--green-700);
  --primary-l:  var(--green-100);
  --text:       var(--gray-900);
  --text-mid:   var(--gray-600);
  --text-light: var(--gray-400);
  --bg:         var(--gray-50);
  --bg-alt:     var(--white);
  --border:     var(--gray-200);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.09);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.18s ease;
  --t-base: 0.28s ease;
  --t-slow: 0.45s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.pc { display: inline; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4 { line-height: 1.4; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px; border-radius: var(--r-full);
  font-weight: 700; font-family: inherit; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--t-base); white-space: nowrap;
  letter-spacing: .02em;
}

.btn-tel {
  background: var(--white); color: var(--green-700);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-tel:hover {
  background: var(--green-50); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}

.btn-contact {
  background: rgba(255,255,255,.15); color: var(--white);
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn-contact:hover {
  background: rgba(255,255,255,.25); border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-green {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 36px; border-radius: var(--r-full);
  border: 2px solid var(--green-600); color: var(--green-700);
  font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  background: var(--white); transition: all var(--t-base);
}
.btn-outline-green:hover {
  background: var(--green-600); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.btn-submit {
  display: block; width: 100%; padding: 16px 24px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white); border: none; border-radius: var(--r-full);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all var(--t-base);
  box-shadow: 0 4px 20px rgba(46,139,110,.4), 0 2px 8px rgba(46,139,110,.3);
  letter-spacing: .04em;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46,139,110,.45), 0 4px 12px rgba(46,139,110,.3);
}

/* ===== HEADER TOP BAR ===== */
.header-top {
  background: var(--green-800);
  color: rgba(255,255,255,.88);
}
.header-top-inner {
  max-width: 1080px; margin: 0 auto; padding: 7px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.header-top-text { font-size: .75rem; letter-spacing: .04em; }
.header-sns { display: flex; gap: 10px; }
.sns-link {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; padding: 3px 12px; border-radius: var(--r-full);
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.25);
  transition: all var(--t-fast);
}
.sns-link:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ===== HEADER MAIN ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--t-base);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-main-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  height: 66px; display: flex; align-items: center; gap: 24px;
}

/* Logo */
.logo a { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 56px; height: 56px; border-radius: 0;
  background: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text strong {
  display: block; font-size: .92rem; font-weight: 700;
  color: var(--gray-900); line-height: 1.2; white-space: nowrap;
}
.logo-text small { display: block; font-size: .67rem; color: var(--gray-500); letter-spacing: .04em; white-space: nowrap; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav a {
  padding: 7px 11px; border-radius: var(--r-sm);
  font-size: .81rem; font-weight: 500; color: var(--gray-600);
  transition: all var(--t-fast); white-space: nowrap; letter-spacing: .02em;
}
.nav a:hover, .nav a.active { color: var(--green-600); background: var(--green-50); }

/* Header Tel */
.header-tel {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: var(--green-50); border: 1.5px solid var(--green-100);
  border-radius: var(--r-full); padding: 7px 18px;
  transition: all var(--t-fast);
}
.header-tel:hover { background: var(--green-100); border-color: var(--green-300); }
.header-tel-icon { font-size: 1rem; }
.header-tel small { display: block; font-size: .66rem; color: var(--gray-500); line-height: 1.2; }
.header-tel strong {
  display: block; font-size: .96rem; font-weight: 800;
  color: var(--green-700); letter-spacing: .04em;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 23px; height: 2px;
  background: var(--gray-700); border-radius: 2px; transition: all .28s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-top: 2px solid var(--green-100);
  position: absolute; top: 100%; left: 0; right: 0;
  box-shadow: var(--shadow-lg); padding-bottom: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  padding: 15px 28px; border-bottom: 1px solid var(--gray-100);
  font-weight: 500; color: var(--gray-700); font-size: .93rem;
  transition: all var(--t-fast);
}
.mobile-menu nav a:hover { color: var(--green-600); background: var(--green-50); padding-left: 36px; }
.mobile-cta {
  background: var(--green-600) !important; color: var(--white) !important;
  margin: 14px 28px 0; border-radius: var(--r-md) !important;
  text-align: center; padding: 14px 28px !important;
}
.mobile-tel { padding: 14px 28px 0; }
.mobile-tel a { font-weight: 800; color: var(--green-600); font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-top: 96px;
}

/* Background image */
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block;
}
.hero-bg-mobile { display: none; }

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,30,20,.82) 0%,
    rgba(5,30,20,.65) 45%,
    rgba(5,30,20,.25) 75%,
    rgba(5,30,20,.10) 100%
  );
}

/* Hero body – single column, left-aligned */
.hero-body {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center;
  max-width: 1100px; margin: 0 auto;
  padding: 60px 40px 60px;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  display: flex; flex-direction: column;
  align-items: flex-start;
}

/* Pill badge */
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.95);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  padding: 6px 18px; border-radius: var(--r-full);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

/* Gold rule under title */
.hero-rule {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #c8a84b, #e8cb7a);
  border-radius: var(--r-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.45;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title em {
  color: #f0d070; font-style: normal;
  white-space: nowrap;
}

/* Description */
.hero-desc {
  font-size: .97rem; color: rgba(255,255,255,.88); line-height: 1.95;
  margin-bottom: 28px;
}

/* Icon row */
.hero-icons {
  display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.hero-icon-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: .75rem; color: rgba(255,255,255,.85);
  font-weight: 500; text-align: center; line-height: 1.5;
}
.hero-icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}

/* Buttons */
.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
  justify-content: center;
  width: 100%;
}
.btn-hero-tel {
  background: var(--green-500); color: var(--white);
  border-color: var(--green-500);
  box-shadow: 0 4px 20px rgba(46,139,110,.5);
}
.btn-hero-tel:hover {
  background: var(--green-400); border-color: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,139,110,.55);
}
.btn-hero-line {
  background: #06C755; color: var(--white);
  border-color: #06C755;
}
.btn-hero-line:hover {
  background: #05a848; border-color: #05a848;
  transform: translateY(-2px);
}
.btn-hero-outline {
  background: rgba(255,255,255,.12); color: var(--white);
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.22); border-color: var(--white);
  transform: translateY(-2px);
}

.hero-note {
  font-size: .78rem; color: rgba(255,255,255,.65);
  letter-spacing: .02em;
  text-align: center; width: 100%;
}

/* ===== 初回無料体験オファー（hero内） ===== */
.hero-offer {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 3px 14px rgba(245,158,11,.35), 0 0 0 2px rgba(255,255,255,.2);
}
.hero-offer-badge {
  background: #fff; color: #d97706;
  font-size: .68rem; font-weight: 900;
  padding: 2px 10px; border-radius: 100px;
  letter-spacing: .08em; white-space: nowrap;
  flex-shrink: 0;
}
.hero-offer-main {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; justify-content: center;
}
.hero-offer-label {
  color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 700;
}
.hero-offer-free {
  font-size: 1.6rem; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-offer-sub {
  color: rgba(255,255,255,.85); font-size: .72rem;
  text-align: center; width: 100%; margin-top: 2px;
}

/* ===== 無料体験CTAバナー（contactセクション直前） ===== */
.offer-cta-section {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-top: 3px solid #f59e0b;
  border-bottom: 3px solid #f59e0b;
  padding: 40px 0;
}
.offer-cta-inner {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap; justify-content: center;
}
.offer-cta-text { text-align: center; }
.offer-cta-eyebrow {
  display: inline-block;
  background: #f59e0b; color: #fff;
  font-size: .72rem; font-weight: 900;
  padding: 3px 14px; border-radius: 100px;
  letter-spacing: .1em; margin-bottom: 10px;
}
.offer-cta-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900; color: #1a1a1a; line-height: 1.3;
  margin-bottom: 8px;
}
.offer-cta-title strong {
  color: #d97706;
}
.offer-cta-desc {
  font-size: .9rem; color: #555; line-height: 1.8;
  margin-bottom: 20px;
}
.offer-cta-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.offer-cta-btn-tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-600); color: #fff;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(46,139,110,.35);
  transition: background .2s, transform .2s;
}
.offer-cta-btn-tel:hover { background: var(--green-700); transform: translateY(-2px); }
.offer-cta-btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: #06C755; color: #fff;
  padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(6,199,85,.3);
  transition: background .2s, transform .2s;
}
.offer-cta-btn-line:hover { background: #05a848; transform: translateY(-2px); }
.offer-cta-note {
  font-size: .75rem; color: #888; margin-top: 10px; text-align: center;
}

@media (max-width: 640px) {
  .hero-offer { padding: 10px 14px; gap: 6px; }
  .hero-offer-free { font-size: 1.3rem; }
  .offer-cta-btn-tel, .offer-cta-btn-line { width: 100%; justify-content: center; }
}

/* スマホ専用改行：PC非表示・スマホ表示 */
.sp-br { display: none; }

/* ===== Hero trust badges ===== */
.hero-trust {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 18px; width: 100%;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px; padding: 6px 14px;
  color: #fff; font-size: .8rem; font-weight: 700;
  white-space: nowrap;
}
.hero-trust-item svg { flex-shrink: 0; }

/* ===== 対象者グリッド（改善版） ===== */
.target-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 20px;
}
.target-card {
  background: #fff; border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--green-500);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-size: .88rem; line-height: 1.55;
  display: flex; align-items: flex-start; gap: 8px;
}
.target-card-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }

/* ===== 安心ワード strip ===== */
.trust-strip {
  background: var(--green-600);
  padding: 18px 0;
}
.trust-strip-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; align-items: center;
}
.trust-tag {
  display: flex; align-items: center; gap: 6px;
  color: #fff; font-size: .82rem; font-weight: 700;
  white-space: nowrap;
}
.trust-tag::before { content: '✓'; opacity: .8; }

/* ===== ケアマネ向けセクション ===== */
.caremanager { background: #f0f7ff; }
.cm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 32px;
}
.cm-card {
  background: #fff; border-radius: 12px;
  padding: 20px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border-top: 3px solid var(--green-500);
}
.cm-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.cm-card h4 { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.cm-card p  { font-size: .82rem; color: var(--gray-600); line-height: 1.7; margin: 0; }
.cm-cta {
  margin-top: 28px; text-align: center;
  background: var(--green-50); border-radius: 12px;
  padding: 20px 24px;
}
.cm-cta p { font-size: .9rem; color: var(--gray-700); margin-bottom: 14px; }
.cm-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 100px;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: opacity .2s;
}
.cm-btn:hover { opacity: .85; }
.cm-btn-fax { background: var(--green-600); color: #fff; }
.cm-btn-line { background: #06C755; color: #fff; }

/* ===== スティッキーCTA（スマホのみ） ===== */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 -3px 16px rgba(0,0,0,.18);
}
.sticky-cta-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px 12px;
  font-size: .68rem; font-weight: 700; text-decoration: none;
  gap: 4px; line-height: 1.2;
}
.sticky-cta-icon { font-size: 1.2rem; }
.sticky-tel  { background: var(--green-600); color: #fff; }
.sticky-line { background: #06C755; color: #fff; }
.sticky-free { background: #f59e0b; color: #fff; }

/* スティッキーCTAのpadding確保（スマホ時のみ） */
@media (max-width: 1023px) {
  .sticky-cta { display: grid; }
  body { padding-bottom: 62px; }
}
@media (min-width: 1024px) {
  .sticky-cta { display: none !important; }
  body { padding-bottom: 0; }
}

/* ケアマネグリッド レスポンシブ */
@media (max-width: 768px) {
  .cm-grid { grid-template-columns: 1fr 1fr; }
  .target-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cm-grid { grid-template-columns: 1fr; }
  .target-grid-v2 { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 6px; }
  .hero-trust-item { font-size: .72rem; padding: 5px 10px; }
}

/* Hero Nav Cards */
.hero-nav-cards {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--green-900);
  border-top: 3px solid var(--green-600);
}
.hero-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 20px 10px;
  color: rgba(255,255,255,.8); font-size: .79rem; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: all var(--t-fast); letter-spacing: .02em;
  cursor: pointer;
}
.hero-card:last-child { border-right: none; }
.hero-card:hover {
  background: var(--green-800); color: var(--white);
  transform: translateY(-2px);
}
.hero-card-icon { font-size: 1.5rem; line-height: 1; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  position: relative; z-index: 10;
}
.stats-inner {
  display: flex; align-items: stretch;
  padding: 0;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px; gap: 6px; text-align: center;
  transition: background var(--t-fast);
}
.stat-item:hover { background: var(--green-50); }
.stat-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--green-700); line-height: 1;
}
.stat-num small { font-size: 1rem; font-weight: 400; }
.stat-label {
  font-size: .75rem; color: var(--gray-500); line-height: 1.6;
}
.stat-divider {
  width: 1px; background: var(--gray-200);
  margin: 20px 0; flex-shrink: 0;
}

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section-gray { background: var(--gray-50); }
.section-white { background: var(--white); }

.section-head { text-align: center; margin-bottom: 64px; }

.section-en {
  display: block; font-size: .7rem; font-weight: 700;
  letter-spacing: .3em; color: var(--green-500);
  margin-bottom: 10px; text-transform: uppercase;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 700; line-height: 1.45; color: var(--gray-900);
  margin-bottom: 18px;
}
.section-lead {
  font-size: .96rem; color: var(--text-mid);
  max-width: 600px; margin: 0 auto; line-height: 1.9;
}

/* Decorative title underline */
.section-head::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
  border-radius: var(--r-full);
  margin: 20px auto 0;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about-features {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  margin-bottom: 60px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative; overflow: hidden;
  text-align: center;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--green-600), var(--green-400)); }
.feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--blue-600), #60a5fa); }
.feature-card:nth-child(3)::before { background: linear-gradient(90deg, var(--orange-600), #fbbf24); }
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon-wrap {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.feature-icon-green  { background: var(--green-50); }
.feature-icon-blue   { background: var(--blue-100); }
.feature-icon-orange { background: var(--orange-100); }
.feature-icon { font-size: 1.6rem; line-height: 1; }

.feature-card h3 {
  font-size: 1.08rem; font-weight: 700; margin-bottom: 14px;
  color: var(--gray-900);
}
.feature-card p { font-size: .87rem; color: var(--text-mid); line-height: 1.9; text-align: left; }

/* Target */
.about-target {
  background: linear-gradient(135deg, var(--green-50) 0%, #d4f0e5 100%);
  border-radius: var(--r-xl); padding: 44px 48px;
  border: 1px solid var(--green-100);
}
.target-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 28px;
  text-align: center; color: var(--green-800);
}
.target-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px 32px;
}
.target-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .89rem; color: var(--gray-700);
  padding: 12px 0; border-bottom: 1px solid rgba(46,139,110,.15);
}
.target-item:nth-child(n+4) { border-bottom: none; }
.target-icon {
  width: 22px; height: 22px; background: var(--green-600);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}

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

.service-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-num {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.9);
  color: var(--green-700); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; padding: 3px 11px;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.service-img {
  height: 136px; display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
}
.service-img-1 { background: linear-gradient(140deg, #dbeafe 0%, #bfdbfe 100%); }
.service-img-2 { background: linear-gradient(140deg, #fef3c7 0%, #fde68a 100%); }
.service-img-3 { background: linear-gradient(140deg, #d1fae5 0%, #a7f3d0 100%); }
.service-img-4 { background: linear-gradient(140deg, #ede9fe 0%, #ddd6fe 100%); }
.service-img-5 { background: linear-gradient(140deg, #fee2e2 0%, #fecaca 100%); }
.service-img-6 { background: linear-gradient(140deg, #dcfce7 0%, #bbf7d0 100%); }

.service-body { padding: 22px 22px 26px; }
.service-body h3 {
  font-size: .98rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900);
}
.service-body p {
  font-size: .84rem; color: var(--text-mid); margin-bottom: 14px; line-height: 1.8;
}
.service-list { list-style: none; border-top: 1px solid var(--gray-100); padding-top: 12px; }
.service-list li {
  font-size: .81rem; color: var(--gray-600);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px; background: var(--green-400);
  border-radius: 50%; flex-shrink: 0;
}

/* ===== AREA ===== */
.area-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 52px; align-items: start; }

.col-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 13px; border-bottom: 2px solid var(--green-100);
  color: var(--gray-900);
}

.area-map {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  margin-bottom: 18px;
}
.area-list { font-size: .87rem; color: var(--text-mid); line-height: 1.85; }
.area-list strong { color: var(--gray-800); }

/* Price Table */
.price-table-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead tr {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
}
.price-table th { padding: 14px 16px; font-size: .82rem; font-weight: 700; text-align: left; }
/* 2列目以降は金額列。見出しも数値と同じ右寄せに揃える */
.price-table th:not(:first-child),
.price-table td:not(:first-child) { text-align: right; }
.price-table td {
  padding: 15px 16px; font-size: .85rem;
  border-bottom: 1px solid var(--gray-100); background: var(--white);
  vertical-align: middle;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--green-50); }

.badge-wari {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white); font-size: .72rem; font-weight: 700;
  padding: 3px 11px; border-radius: var(--r-full); margin-right: 6px;
}
.wari-note { font-size: .73rem; color: var(--gray-500); }
.price-amount { font-size: 1.08rem; font-weight: 800; color: var(--green-700); text-align: right; }

.price-notes { font-size: .78rem; color: var(--gray-500); line-height: 1.95; margin-bottom: 20px; }
.price-notes p { padding-left: 1em; text-indent: -1em; }

.price-insurance-box {
  background: linear-gradient(135deg, var(--green-50), #d4f0e5);
  border: 1px solid var(--green-100);
  border-radius: var(--r-lg); padding: 22px 26px;
}
.price-insurance-box h4 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--green-800); }
.price-insurance-box p { font-size: .85rem; color: var(--gray-700); line-height: 1.8; }

/* ===== STAFF ===== */
.staff-card {
  background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr;
  border: 1px solid var(--gray-200);
}

.staff-photo {
  background: linear-gradient(160deg, var(--green-50) 0%, #c9ebdf 100%);
  padding: 40px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.staff-photo-inner { max-width: 185px; margin: 0 auto 20px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.1)); }

.staff-name-plate {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white); border-radius: var(--r-md);
  padding: 14px 18px; width: 100%; box-shadow: 0 4px 14px rgba(46,139,110,.35);
}
.staff-name-plate strong { display: block; font-size: 1.05rem; margin-bottom: 4px; letter-spacing: .03em; }
.staff-name-plate span { font-size: .76rem; opacity: .88; }

.staff-profile { padding: 42px 44px; }

.staff-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.staff-tag {
  background: var(--green-50); color: var(--green-700);
  font-size: .76rem; font-weight: 700; padding: 5px 14px;
  border-radius: var(--r-full); border: 1px solid var(--green-100);
}

.staff-greeting {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.28rem; font-weight: 700; line-height: 1.65;
  margin-bottom: 26px; color: var(--gray-900);
  border-left: 4px solid var(--green-500); padding-left: 18px;
}

.staff-text p {
  font-size: .9rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 13px;
}

.staff-career {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gray-100);
}
.staff-career h4 { font-size: .88rem; font-weight: 700; margin-bottom: 12px; color: var(--green-700); letter-spacing: .04em; }
.staff-career ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.staff-career li {
  font-size: .84rem; color: var(--gray-600); padding: 6px 0;
  display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--gray-100);
}
.staff-career li::before { content: '▸'; color: var(--green-500); flex-shrink: 0; font-size: .7rem; }

/* ===== VOICE ===== */
.voice { background: var(--white); }
.voice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.voice-card {
  background: var(--gray-50);
  border-radius: var(--r-lg); padding: 30px 26px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--green-400);
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
}
.voice-card::before {
  content: '"';
  position: absolute; top: 12px; right: 20px;
  font-size: 5rem; line-height: 1; color: var(--green-100);
  font-family: Georgia, serif; pointer-events: none;
}
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-300); }

.voice-top {
  display: flex; align-items: center; gap: 13px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--gray-200);
}
.voice-avatar {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .73rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(46,139,110,.3);
}
.voice-top strong { display: block; font-size: .91rem; font-weight: 700; margin-bottom: 3px; }
.voice-top span { font-size: .74rem; color: var(--gray-500); }
.voice-card p { font-size: .87rem; color: var(--text-mid); line-height: 1.85; position: relative; z-index: 1; }

/* ===== FLOW ===== */
.flow-steps { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto; }
.flow-step { display: flex; flex-direction: column; align-items: center; }

.flow-step-inner {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: grid; grid-template-columns: 80px 1fr; gap: 0 22px;
  align-items: center; width: 100%;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.flow-step-inner:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }
.flow-step-final {
  border: 2px solid var(--green-400);
  background: linear-gradient(135deg, var(--white), var(--green-50));
}
.flow-step-final h3,
.flow-step-final p { color: var(--gray-900) !important; opacity: 1 !important; }

.flow-step-head {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  grid-row: span 2;
}
.flow-num {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 7px 10px; border-radius: var(--r-sm); text-align: center;
  line-height: 1.4; box-shadow: 0 3px 10px rgba(46,139,110,.3);
}
.flow-icon { font-size: 1.9rem; line-height: 1; }

.flow-step-inner h3 {
  font-size: 1.02rem; font-weight: 700; margin-bottom: 6px;
  color: var(--gray-900); align-self: end;
}
.flow-step-inner p { font-size: .86rem; color: var(--text-mid); line-height: 1.8; }

.flow-arrow {
  font-size: 1.2rem; color: var(--green-300); text-align: center;
  padding: 5px 0; opacity: .7;
}

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden; background: var(--white);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: var(--green-200); }

.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 19px 22px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .94rem; font-weight: 700;
  color: var(--gray-900); text-align: left; transition: background var(--t-fast);
}
.faq-q:hover { background: var(--gray-50); }
.faq-q[aria-expanded="true"] { background: var(--green-50); color: var(--green-800); }

.faq-q-label {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(46,139,110,.3);
}
.faq-q[aria-expanded="true"] .faq-q-label {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
}
.faq-q span:nth-child(2) { flex: 1; }
.faq-arrow {
  flex-shrink: 0; font-size: .72rem; color: var(--green-500);
  transition: transform .3s; margin-left: auto;
}
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  display: flex; gap: 14px; padding: 0 22px;
}
.faq-a-label {
  width: 30px; height: 30px;
  background: var(--orange-100); color: var(--orange-600);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0; margin-top: 14px;
}
.faq-a p {
  font-size: .9rem; color: var(--text-mid); line-height: 1.85;
  padding: 14px 0 20px; flex: 1;
  border-top: 1px solid var(--gray-100);
}

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.news-card-link {
  text-decoration: none; color: inherit; display: block;
  cursor: pointer;
}
.news-card {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.news-img {
  height: 124px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.news-img-1 { background: linear-gradient(140deg, #d1fae5, #a7f3d0); }
.news-img-2 { background: linear-gradient(140deg, #dbeafe, #bfdbfe); }
.news-img-3 { background: linear-gradient(140deg, #fef3c7, #fde68a); }

.news-body { padding: 18px 20px 22px; }
.news-cat {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--r-full); margin-bottom: 6px; margin-right: 6px;
}
.cat-info   { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.cat-column { background: var(--blue-100);  color: var(--blue-600);  border: 1px solid #bfdbfe; }
.news-date  { font-size: .73rem; color: var(--gray-500); }
.news-body h3 {
  font-size: .94rem; font-weight: 700; margin: 9px 0 8px;
  line-height: 1.55; color: var(--gray-900);
}
.news-body p { font-size: .82rem; color: var(--text-mid); line-height: 1.75; }

/* ===== CONTACT ===== */
.contact { background: var(--white); }

.contact-methods {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 18px; margin-bottom: 60px;
}

.contact-method-card {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 22px; border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: all var(--t-base); cursor: pointer;
}
.contact-tel {
  background: linear-gradient(135deg, var(--green-50), #d0eee4);
  border-color: var(--green-100);
}
.contact-tel:hover { border-color: var(--green-400); box-shadow: 0 4px 20px rgba(46,139,110,.2); transform: translateY(-3px); }
.contact-line {
  background: linear-gradient(135deg, #f0fff6, #c6f7da);
  border-color: #bbf7d0;
}
.contact-line:hover { border-color: #06c755; box-shadow: 0 4px 20px rgba(6,199,85,.2); transform: translateY(-3px); }
.contact-fax {
  background: var(--gray-50); border-color: var(--gray-200);
}
.contact-fax:hover { border-color: var(--gray-400); box-shadow: var(--shadow-sm); transform: translateY(-3px); }

.cmethod-icon { font-size: 2.4rem; flex-shrink: 0; line-height: 1; }
.cmethod-icon-line { font-size: 0; }
.cmethod-icon-line svg { width: 42px; height: 42px; display: block; }
.contact-method-card strong { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 5px; color: var(--gray-800); }
.cmethod-num { display: block; font-size: 1.2rem; font-weight: 800; color: var(--green-700); margin-bottom: 3px; letter-spacing: .03em; }
.contact-method-card small { font-size: .73rem; color: var(--gray-500); }

/* Contact Form */
.contact-form-wrap {
  max-width: 760px; margin: 0 auto;
  background: var(--gray-50); border-radius: var(--r-xl);
  padding: 40px 48px; border: 1px solid var(--gray-200);
}
.contact-form-wrap h3 {
  font-size: 1.1rem; font-weight: 700; text-align: center;
  margin-bottom: 24px; color: var(--gray-900);
}
.form-intro {
  font-size: .88rem; color: var(--gray-600); line-height: 1.7;
  margin-bottom: 28px; text-align: center;
}
.form-closing {
  font-size: .84rem; color: var(--gray-500); text-align: center;
  margin: 4px 0 20px; line-height: 1.7;
}
.form-required {
  display: inline-block; background: var(--red-500); color: var(--white);
  font-size: .66rem; padding: 1px 7px; border-radius: 4px; margin-left: 5px;
  font-weight: 600; vertical-align: middle;
}
.form-optional {
  display: inline-block; background: var(--gray-400); color: var(--white);
  font-size: .66rem; padding: 1px 7px; border-radius: 4px; margin-left: 5px;
  font-weight: 600; vertical-align: middle;
}
.form-hint { display: block; font-size: .76rem; color: var(--gray-500); margin-top: 5px; }

.form-group { margin-bottom: 20px; }
.form-group > label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-700); }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--gray-300); border-radius: var(--r-sm);
  font-size: .93rem; font-family: inherit; color: var(--gray-900);
  background: var(--white); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(90,196,160,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-radio-group,
.form-check-group {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.form-radio,
.form-check {
  display: flex; align-items: center; gap: 7px;
  font-size: .88rem; color: var(--text-mid); cursor: pointer;
}
.form-radio input[type="radio"],
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--green-600); flex-shrink: 0; cursor: pointer;
}

.form-submit-wrap { text-align: center; margin-top: 8px; }
.btn-submit {
  display: inline-block; background: var(--green-600); color: var(--white);
  font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  padding: 14px 48px; border-radius: var(--r-full);
  border: none; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-submit:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-submit:disabled { background: var(--gray-400); cursor: not-allowed; transform: none; }

.form-success {
  text-align: center; padding: 32px 20px;
  font-size: 1rem; color: var(--green-700); line-height: 1.8;
}

.form-note { text-align: center; font-size: .78rem; color: var(--gray-500); margin-top: 12px; }

/* ===== Contact Form 7 を既存フォームのデザインに合わせる ===== */
/* CF7は入力欄をspanで包むため、ブロック化して幅いっぱいに広げる */
.wpcf7-form-control-wrap { display: block; }

/* ラジオ・チェックボックス（CF7は .wpcf7-list-item で1項目ずつ出力する） */
.form-radio-group .wpcf7-radio,
.form-check-group .wpcf7-checkbox {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label {
  display: flex; align-items: center; gap: 7px;
  font-size: .88rem; color: var(--text-mid); cursor: pointer;
}
.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--green-600);
  flex-shrink: 0; cursor: pointer;
}

/* 同意チェック（要配慮個人情報の取得同意） */
.form-consent .wpcf7-acceptance .wpcf7-list-item label {
  align-items: flex-start; font-size: .82rem; line-height: 1.7;
}
.form-consent a { color: var(--green-600); text-decoration: underline; }

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  display: block; margin-top: 6px;
  font-size: .78rem; color: #c0392b; font-weight: 700;
}
.wpcf7-form-control.wpcf7-not-valid { border-color: #c0392b; }

/* 送信後のメッセージ（既存の .form-success と同じ見た目に） */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: var(--r-md);
  border-width: 1px !important;
  font-size: .92rem; line-height: 1.8; text-align: center;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--green-500) !important;
  background: var(--green-50); color: var(--green-700);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #f0c040 !important; background: #fffbea; color: #8a6d1f;
}

/* 送信中インジケータ */
.wpcf7-spinner { margin: 0 0 0 10px; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(160deg, #0e2d22 0%, #1a3830 60%, #1f4535 100%);
  color: rgba(255,255,255,.68);
}

.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; padding: 72px 28px 48px;
}

.logo-light .logo-mark {
  background: none;
}
.logo-light .logo-text strong { color: var(--white); }
.logo-light .logo-text small  { color: rgba(255,255,255,.42); }

.footer-info {
  margin-top: 22px; font-size: .84rem; line-height: 2.0;
}
.footer-info address { font-style: normal; margin-bottom: 8px; }
.footer-info a { color: rgba(255,255,255,.75); transition: color var(--t-fast); }
.footer-info a:hover { color: var(--white); }

.footer-sns { display: flex; gap: 10px; margin-top: 22px; }
.footer-sns-btn {
  padding: 7px 18px; border-radius: var(--r-full);
  font-size: .78rem; font-weight: 700; transition: all var(--t-fast);
  letter-spacing: .03em;
}
.line-btn  { background: #06c755; color: var(--white); }
.insta-btn { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.footer-sns-btn:hover { opacity: .85; transform: translateY(-1px); }

.footer-nav-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.footer-nav h4 {
  color: var(--white); font-size: .83rem; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  letter-spacing: .06em;
}
.footer-nav a {
  display: block; font-size: .81rem; margin-bottom: 8px;
  color: rgba(255,255,255,.5); transition: all var(--t-fast);
}
.footer-nav a:hover { color: var(--white); padding-left: 4px; }
.footer-nav p { font-size: .81rem; line-height: 1.85; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; color: rgba(255,255,255,.3);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom div { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.3); transition: color var(--t-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,.65); }

/* ===== FLOATING CTA ===== */
.float-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: all var(--t-base);
}
.float-cta.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.float-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-full); color: var(--white);
  font-size: .84rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: var(--shadow-lg); transition: all var(--t-fast); white-space: nowrap;
}
.float-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.float-tel  { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.float-line { background: linear-gradient(135deg, #05a847, #06c755); }
.float-mail { background: linear-gradient(135deg, #1d4ed8, var(--blue-600)); }

/* ===== SCROLL ANIMATION ===== */
.anim {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.anim.visible { opacity: 1; transform: translateY(0); }

/* ===== FAQ カテゴリラベル ===== */
.faq-category-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--green-600); background: var(--green-50);
  border-left: 3px solid var(--green-500);
  padding: 8px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 32px 0 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-body { padding: 48px 28px 40px; }
  .hero-content { max-width: 100%; }

  .about-features { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { text-align: left; padding: 28px 24px; }
  .feature-card { display: grid; grid-template-columns: 72px 1fr; gap: 0 20px; align-items: start; }
  .feature-icon-wrap { margin: 0; grid-row: span 2; border-radius: 16px; }

  .stats-inner { flex-wrap: nowrap; }
  .stat-item { flex: 1 1 0; padding: 20px 8px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .72rem; }
  .stat-divider:nth-child(4) { display: block; }

  .service-grid  { grid-template-columns: repeat(2,1fr); }
  .area-grid     { grid-template-columns: 1fr; }
  .staff-card    { grid-template-columns: 1fr; }
  .staff-photo   { flex-direction: row; padding: 28px 32px; }
  .staff-photo-inner { max-width: 140px; margin: 0 20px 0 0; flex-shrink: 0; }
  .staff-career ul { grid-template-columns: 1fr; }
  .voice-grid    { grid-template-columns: 1fr; gap: 16px; }
  .news-grid     { grid-template-columns: repeat(2,1fr); }
  .contact-methods { grid-template-columns: 1fr; gap: 12px; }
  .hero-nav-cards { grid-template-columns: repeat(3,1fr); }
  .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .nav, .header-tel { display: none; }
  .hamburger { display: flex; }
  .header-main-inner { justify-content: space-between; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 44px; }

  .hero { padding-top: 66px; min-height: 100svh; }
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; object-position: center top; }
  .hero-body { padding: 40px 20px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-desc { font-size: .92rem; line-height: 1.75; }
  .hero-icons { flex-wrap: nowrap; gap: 8px; width: 100%; justify-content: center; }
  .hero-icon-item { flex: 1; min-width: 0; font-size: .68rem; text-align: center; align-items: center; }
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto 12px; }
  .hero-nav-cards { grid-template-columns: repeat(3,1fr); }
  .hero-card { padding: 16px 8px; font-size: .72rem; }

  .stats-inner { flex-direction: row; flex-wrap: nowrap; }
  .stat-item { flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 12px 2px; gap: 3px; border-right: 1px solid var(--gray-100); border-bottom: none; }
  .stat-item:last-child { border-right: none; border-bottom: none; }
  .stat-divider { display: none; }
  .stat-num { font-size: 1.05rem; }
  .stat-label { font-size: .55rem; }

  .target-grid { grid-template-columns: 1fr 1fr; }
  .about-target { padding: 30px 24px; }

  .service-grid  { grid-template-columns: 1fr; }
  .voice-grid    { grid-template-columns: 1fr; }

  /* ニュース：横並び（左画像・右テキスト） */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; }
  .news-img { height: auto; min-height: 96px; font-size: 2rem; border-radius: 0; }
  .news-body { padding: 12px 14px 14px; }
  .news-body h3 { font-size: .88rem; margin: 5px 0 4px; }
  .news-body p { font-size: .78rem; line-height: 1.65; }

  .staff-photo { flex-direction: column; align-items: center; text-align: center; }
  .staff-photo-inner { margin: 0 auto 20px; }
  .staff-profile { padding: 28px 24px; }
  .staff-greeting { font-size: 1.1rem; }

  .flow-step-inner { grid-template-columns: 70px 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 30px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav-col { grid-template-columns: 1fr; }

  .float-btn span:last-child { display: none; }
  .float-btn { padding: 14px; border-radius: 50%; width: 48px; height: 48px; }
  .float-cta { gap: 9px; bottom: 20px; right: 18px; }

  .price-table th, .price-table td { padding: 11px 8px; font-size: .78rem; }
  /* スマホでは「10割」列を隠す（患者が支払うのは負担割合分のみ。5列は狭すぎて
     1列目が4〜5行に折り返され読めなくなるため）。10割額は注記に記載あり */
  .price-table .col-10wari { display: none; }
  .price-table td:first-child small { display: block; font-size: .68rem; opacity: .7; }
  .pc { display: none; }

  /* ===== スマホ専用改行 有効化 ===== */
  .sp-br { display: block; }

  /* 1. hero-offer-sub：1行に収める */
  .hero-offer-sub { font-size: .62rem; }

  /* 2. hero-note：中央揃え（HTMLでsp-br挿入済み） */
  .hero-note { text-align: center; }

  /* 3. このような方が対象です：縦1列 */
  .target-grid-v2 { grid-template-columns: 1fr; }

  /* 5. ケアマネ section-lead：中央揃え */
  .caremanager .section-lead { text-align: center; }

  /* 6. 無料でお試しください：1行に収まるサイズ */
  .offer-cta-title { font-size: 1.2rem; }

  /* 7. 相談だけでも大歓迎：1行 */
  .contact .section-lead { font-size: .82rem; white-space: nowrap; }

}

@media (max-width: 480px) {
  .hero-nav-cards { grid-template-columns: repeat(2,1fr); }
  .target-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-icon-wrap { margin-bottom: 14px; }
  .hero-catch { font-size: .78rem; letter-spacing: .12em; }
  .hero-sub { flex-direction: column; gap: 8px; }
}
