/* ==========================================================
   株式会社appriciato コーポレートサイト スタイル
   ダークテーマ × TRONブルー系（アクセントは映画TRONロゴ文字の実測色）
   ========================================================== */

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

:root {
  --bg: #030608;
  --bg-alt: #060b10;
  --surface: #0a1118;
  --border: rgba(148, 210, 220, 0.1);
  --accent: #4fd6f5;   /* TRON ネオンシアン（実測色を発光寄りに明るく調整） */
  --accent2: #a3ecff;  /* 発光の芯に近い、明るい水色 */
  --accent-soft: rgba(79, 214, 245, 0.16);
  --glow: rgba(79, 214, 245, 0.55);  /* ネオンのグロー色 */
  --text: #e6f0f2;
  --muted: #8aa3ad;
  --radius: 16px;
  --header-h: 72px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 800px; }

.pc-only { display: inline; }
.sp-only { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- 共通ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: #062733;
  box-shadow: 0 0 20px var(--glow), 0 8px 28px rgba(79, 214, 245, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--glow), 0 12px 36px rgba(79, 214, 245, 0.5);
}

.btn-outline {
  border-color: rgba(230, 240, 242, 0.25);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(230, 240, 242, 0.06);
  border-color: rgba(230, 240, 242, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px var(--glow));
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(3, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #062733;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--glow), 0 6px 20px rgba(79, 214, 245, 0.4);
}

.logo-text { line-height: 1.25; }
.logo-name { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.3px; }
.logo-sub { display: block; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 28px; }

.nav-list {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--text); background: rgba(230, 240, 242, 0.05); }

/* ハンバーガー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(79, 214, 245, 0.35), transparent 70%);
}

.hero-orb-2 {
  width: 460px;
  height: 460px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(163, 236, 255, 0.3), transparent 70%);
  animation-delay: -7s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 210, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 210, 220, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 214, 245, 0.45);
  color: #c9f2ff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 0 22px rgba(79, 214, 245, 0.22);
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 22px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- セクション共通 ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

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

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px;
  text-shadow: 0 0 14px var(--glow);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.section-lead { color: var(--muted); font-size: 1.02rem; }

/* スクロール表示アニメーション */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- サービス（Apple風タイル） ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 420px;
  padding: 48px 32px 36px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(79, 214, 245, 0.08), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 214, 245, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.tile:hover::before { opacity: 1; }

.tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 214, 245, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px var(--glow)); }

.tile-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--glow);
}

.tile-title {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.tile-copy {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  flex-grow: 1;
}

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tile-btn-ico { font-size: 0.95em; transition: transform 0.2s; }
.tile-btn:hover .tile-btn-ico { transform: translateX(2px); }

.tile-btn-more {
  background: transparent;
  border: 1px solid rgba(79, 214, 245, 0.5);
  color: #c9f2ff;
}

.tile-btn-more:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.tile-btn-cta {
  background: var(--grad);
  border: 1px solid transparent;
  color: #062733;
  box-shadow: 0 0 16px var(--glow), 0 6px 18px rgba(79, 214, 245, 0.28);
}

.tile-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--glow), 0 10px 26px rgba(79, 214, 245, 0.45);
}

/* サービス詳細モーダル */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* hidden 属性で確実に隠す（display 指定より優先されるよう限定） */
.modal[hidden] { display: none; }
.modal:not([hidden]) { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  animation: modalFade 0.25s ease both;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 214, 245, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid rgba(79, 214, 245, 0.3);
  border-radius: 22px;
  padding: 44px 40px 36px;
  box-shadow: 0 0 40px rgba(79, 214, 245, 0.2), 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.3s ease both;
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 240, 242, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(230, 240, 242, 0.14); }
.modal-close svg { width: 18px; height: 18px; }

.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--glow);
  margin-bottom: 12px;
}

.modal-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
}

.modal-detail {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 32px;
}

.modal-actions { display: flex; justify-content: center; }

body.modal-open { overflow: hidden; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; }

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover { background: rgba(230, 240, 242, 0.03); }

.news-date {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-cat {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c9f2ff;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 214, 245, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
}

.news-title { font-size: 0.98rem; font-weight: 500; }

/* ---------- 会社概要 ---------- */
.mission {
  text-align: center;
  margin-bottom: 72px;
}

.mission-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 16px;
}

.mission-copy {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.mission-desc { color: var(--muted); font-size: 1.02rem; }

/* 代表メッセージ */
.message {
  display: flex;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  margin-bottom: 56px;
}

.message-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  width: 100px;
  height: 100px;
}

.message-avatar {
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(79, 214, 245, 0.5);
  transition: box-shadow 0.2s ease;
}

.message-avatar:hover { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), 0 0 18px rgba(79, 214, 245, 0.45); }
.message-avatar:focus-visible { outline: 2px solid var(--accent2); outline-offset: 8px; }

.message-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; }

/* 押せることを知らせる小さな印。一度開いたら消す */
.message-avatar-hint {
  position: absolute;
  right: -6px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  line-height: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  animation: avatar-hint 3.2s ease-in-out infinite;
}
.message-avatar.is-greeted .message-avatar-hint { display: none; }
@keyframes avatar-hint {
  0%, 72%, 100% { transform: none; }
  80% { transform: translateY(-7px) scale(1.08); }
  88% { transform: translateY(1px) scale(0.97); }
}

/* アバターの吹き出し */
.avatar-bubble {
  position: absolute;
  z-index: 20;
  top: 84px;
  left: calc(100% + 16px);
  display: grid;
  gap: 6px;
  width: max-content;
  max-width: 460px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transform-origin: 0 22px;
  animation: avatar-bubble-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.avatar-bubble[hidden] { display: none; }
.avatar-bubble::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -9px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 3px;
  transform: rotate(45deg);
}
@keyframes avatar-bubble-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.avatar-bubble-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  color: #14324c;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s ease;
}
.avatar-bubble-link:hover { background: #e6f7fd; }
.avatar-bubble-link:focus-visible { outline: 2px solid #0288b5; outline-offset: -2px; }
.avatar-bubble-go { flex-shrink: 0; color: #0288b5; transition: transform 0.2s ease; }
.avatar-bubble-link:hover .avatar-bubble-go { transform: translateX(4px); }

/* 案内役（キャラクター）。吹き出しはどの画面幅でもアイコンの下に開く */
.members { margin: -24px 0 56px; }
.members-heading { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.members-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.members-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.member .message-avatar-wrap { width: 100%; height: auto; }
.member .avatar-bubble {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 420px;
  margin-top: 16px;
  transform-origin: 40px 0;
}
.member .avatar-bubble::before { top: -8px; left: 40px; }
.member-body { min-width: 0; }
.member-name { font-size: 1.25rem; font-weight: 800; margin: 2px 0 8px; }
.member-text { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.member-orca .message-avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(116, 192, 252, 0.6); }
.member-santei .message-avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(255, 212, 59, 0.6); }
.member-kaigo .message-avatar { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(140, 233, 154, 0.6); }

@media (max-width: 900px) {
  .members-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* 縦並びの画面では文章に重ねず、アバターの下に開いて本文を押し下げる */
  .message-avatar-wrap { width: 100%; height: auto; }
  .avatar-bubble {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 420px;
    margin-top: 18px;
    transform-origin: 40px 0;
  }
  .avatar-bubble::before { top: -8px; left: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .message-avatar-hint, .avatar-bubble { animation: none; }
}

.message-role { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }

.message-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.message-name-en {
  margin-left: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.message-text p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.message-text p:last-child { margin-bottom: 0; }

/* 会社情報テーブル */
.company-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.company-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.company-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}

.company-row:last-child { border-bottom: none; }

.company-row dt {
  padding: 20px 24px;
  background: rgba(230, 240, 242, 0.03);
  font-weight: 700;
  font-size: 0.95rem;
}

.company-row dd {
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta { padding: 110px 0; }

.cta-box {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 30% 0%, rgba(79, 214, 245, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(163, 236, 255, 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 72px 32px;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 14px 0 20px;
}

.cta-lead { color: var(--muted); margin-bottom: 36px; }

/* ---------- 医療機関向けメッセージ ---------- */
.pledge-section { padding-top: 96px; padding-bottom: 96px; }

.pledge {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(79, 214, 245, 0.1), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 40px;
  overflow: hidden;
}

.pledge::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 18px var(--glow);
}

.pledge .section-label { margin-bottom: 20px; }

.pledge-title {
  font-size: clamp(1.2rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.pledge-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.pledge-body {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto 28px;
}

.pledge-lead {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
}

.form-row { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.req { color: #f87171; }

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  background: rgba(3, 6, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: rgba(79, 214, 245, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 214, 245, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%238aa3ad' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-note {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(163, 236, 255, 0.1);
  border: 1px solid rgba(163, 236, 255, 0.3);
  color: #9bdcfb;
  font-size: 0.92rem;
}

.form-note.is-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.form-submit { width: 100%; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ボット対策用の項目（画面外に置き、人には見せない） */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.footer-address { color: var(--muted); font-size: 0.88rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-content: flex-start;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(138, 163, 173, 0.5);
  letter-spacing: 0.05em;
}

/* ---------- チャットボット ---------- */
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse; /* トグルボタンを下、ウィンドウを上に配置 */
  align-items: flex-end;
  gap: 16px;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #062733;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px var(--glow), 0 10px 30px rgba(79, 214, 245, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px var(--glow), 0 14px 36px rgba(79, 214, 245, 0.6);
}

.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-icon-close { display: none; }
.chatbot.is-open .chatbot-icon-open { display: none; }
.chatbot.is-open .chatbot-icon-close { display: block; }

.chatbot-window[hidden] { display: none; }

.chatbot-window {
  width: min(380px, calc(100vw - 48px));
  height: min(540px, calc(100dvh - 140px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: chatIn 0.3s ease both;
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(79, 214, 245, 0.14), rgba(163, 236, 255, 0.1));
  border-bottom: 1px solid var(--border);
}

.chatbot-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #062733;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-header-title { font-weight: 700; font-size: 0.98rem; }
.chatbot-header-sub { font-size: 0.75rem; color: var(--muted); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
  animation: chatIn 0.25s ease both;
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(230, 240, 242, 0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--grad);
  color: #062733;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.chatbot-quick:empty { display: none; }

.quick-btn {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9f2ff;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 214, 245, 0.3);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.quick-btn:hover { background: rgba(79, 214, 245, 0.22); transform: translateY(-1px); }

.chatbot-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.chatbot-input {
  flex: 1;
  min-height: 46px;
  padding: 11px 16px;
  background: rgba(3, 6, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}

.chatbot-input:focus {
  outline: none;
  border-color: rgba(79, 214, 245, 0.55);
}

.chatbot-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #062733;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-send:hover { transform: scale(1.06); }
.chatbot-send svg { width: 20px; height: 20px; }

/* ==========================================================
   サービス詳細ページ（weborca.html など）
   ========================================================== */
.detail-main { padding-top: var(--header-h); }

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 60px;
  border-bottom: 1px solid var(--border);
}

.detail-hero-inner { position: relative; text-align: center; }

.hero-logo { margin: 10px 0 22px; }
.hero-logo img {
  width: 300px;
  max-width: 76%;
  height: auto;
}

.brand-note {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.detail-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--glow);
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.detail-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 36px;
}

.detail-section { padding: 72px 0; }
.detail-section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.detail-h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 24px;
}

.section-head .detail-h2 { margin-bottom: 0; }

.prose {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

/* 特長カード */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 214, 245, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.feature-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px var(--glow));
  width: fit-content;
}

.feature-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.feature-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }

/* 導入ステップ */
.steps { list-style: none; display: flex; flex-direction: column; gap: 0; }

.step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 28px 0;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--border), transparent);
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 214, 245, 0.4);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(79, 214, 245, 0.2);
}

.step-title { font-size: 1.05rem; font-weight: 700; margin: 9px 0 6px; }
.step-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }

/* 注記 */
.note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(79, 214, 245, 0.06);
  border: 1px solid rgba(79, 214, 245, 0.2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* 料金カード */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}

.price-name { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.price-value { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.price-value strong { font-size: 1.9rem; font-weight: 800; }
.price-tax { font-size: 0.8rem; color: var(--muted); margin-left: 4px; }
.price-note { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }

/* 支援リスト */
.support-list { list-style: none; margin-bottom: 28px; }

.support-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
}

.support-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(-45deg);
  filter: drop-shadow(0 0 6px var(--glow));
}

/* システム構成図 */
.diagram-scroll {
  overflow-x: auto;
  padding: 28px 24px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(79, 214, 245, 0.06), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.diagram-svg {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}

.diagram-svg text {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', system-ui, sans-serif;
}

.dg-head { fill: var(--text); font-size: 15px; font-weight: 700; }
.dg-zone { fill: rgba(79, 214, 245, 0.04); stroke: var(--border); stroke-width: 1.5; }
.dg-card { fill: #0d1824; stroke: rgba(79, 214, 245, 0.22); stroke-width: 1.5; }
.dg-card-net { fill: rgba(230, 240, 242, 0.03); }
.dg-card-key { fill: rgba(79, 214, 245, 0.12); stroke: var(--accent); stroke-width: 1.8; }
.dg-label { fill: var(--text); font-size: 14px; font-weight: 600; }
.dg-accent { fill: #a3ecff; font-weight: 700; }
.dg-sub { fill: var(--muted); font-size: 11.5px; }
.dg-divider { stroke: var(--border); stroke-width: 1; stroke-dasharray: 4 4; }
.dg-badge { fill: rgba(79, 214, 245, 0.1); stroke: rgba(79, 214, 245, 0.4); stroke-width: 1; }
.dg-badge-text { fill: #c9f2ff; font-size: 12.5px; font-weight: 600; }
.dg-cloud { fill: #0d1824; stroke: rgba(79, 214, 245, 0.3); stroke-width: 1.5; }
.dg-flow { stroke: var(--accent); stroke-width: 2.5; }
.dg-ic { fill: none; stroke: #4fd6f5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dg-icf { fill: #4fd6f5; }

/* 免責注記 */
.disclaimer {
  color: rgba(138, 163, 173, 0.7);
  font-size: 0.8rem;
  line-height: 1.8;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================
   レスポンシブ
   ========================================================== */

/* タブレット以下 */
@media (max-width: 900px) {
  .message { flex-direction: column; gap: 20px; padding: 32px 24px; }

  .company-row { grid-template-columns: 1fr; }
  .company-row dt { padding: 14px 20px 6px; background: rgba(230, 240, 242, 0.04); }
  .company-row dd { padding: 6px 20px 16px; background: rgba(230, 240, 242, 0.04); }
}

/* モバイル */
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

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

  /* タイル・詳細ページのモバイル調整 */
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 40px 24px 32px; }
  .detail-section { padding: 56px 0; }
  .detail-hero { padding: 48px 24px 44px; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* モバイルナビ（ドロワー） */
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 24px;
    background: #05090c;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { min-height: 48px; font-size: 1.02rem; }
  .nav-cta { margin-top: 8px; }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  .cta-box { padding: 52px 24px; }

  .contact-form { padding: 28px 20px; }

  .news-item { flex-wrap: wrap; gap: 10px 14px; padding: 18px 4px; }
  .news-title { width: 100%; }

  .footer-inner { flex-direction: column; }

  .chatbot { right: 16px; bottom: 16px; }
}

/* アニメーション抑制設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   WebORCA 詳細ページ専用テーマ（orcamo風・白基調 × スカイブルー）
   トップページ（ダーク）はそのまま。body.weborca-theme のみ適用。
   ========================================================== */
.weborca-theme {
  --bg: #ffffff;
  --bg-alt: #eef7fd;
  --surface: #ffffff;
  --border: rgba(3, 169, 244, 0.2);
  --accent: #03a9f4;
  --accent2: #4fc3f7;
  --accent-soft: rgba(3, 169, 244, 0.08);
  --glow: rgba(3, 169, 244, 0.28);
  --text: #14324c;
  --muted: #5f7d92;
  /* --grad は :root で一度だけ解決されるため、ページ側の配色を反映させるにはここで定義し直す */
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  background: var(--bg);
  color: var(--text);
}

/* ヘッダー */
.weborca-theme .header { border-bottom: 1px solid transparent; }
.weborca-theme .header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.weborca-theme .logo-mark { color: #fff; box-shadow: 0 6px 16px rgba(3, 169, 244, 0.3); }
.weborca-theme .logo-name { color: var(--text); }
.weborca-theme .logo-sub { color: var(--muted); }
.weborca-theme .nav-link { color: var(--muted); }
.weborca-theme .nav-link:hover { color: var(--text); background: rgba(3, 169, 244, 0.08); }
.weborca-theme .nav { background: #ffffff; }
.weborca-theme .menu-toggle { border-color: var(--border); }
.weborca-theme .menu-toggle span { background: var(--text); }

/* ボタン */
.weborca-theme .btn-primary { color: #fff; box-shadow: 0 6px 18px rgba(3, 169, 244, 0.3); }
.weborca-theme .btn-primary:hover { box-shadow: 0 10px 26px rgba(3, 169, 244, 0.42); }
.weborca-theme .btn-outline { color: var(--text); border-color: rgba(20, 50, 76, 0.2); }
.weborca-theme .btn-outline:hover { background: rgba(3, 169, 244, 0.06); border-color: rgba(20, 50, 76, 0.35); }

/* グラデ文字（フラットに） */
.weborca-theme .gradient-text { filter: none; }

/* 詳細ヒーロー（空のイメージ） */
.weborca-theme .detail-hero {
  background: linear-gradient(180deg, #daf0fd 0%, #f2fbff 55%, #ffffff 100%);
  border-bottom-color: var(--border);
}
.weborca-theme .hero-orb { display: none; }
.weborca-theme .back-link { color: var(--accent); }
.weborca-theme .back-link:hover { color: #0277bd; }
.weborca-theme .detail-eyebrow,
.weborca-theme .section-label { color: var(--accent); text-shadow: none; }
.weborca-theme .detail-title,
.weborca-theme .detail-h2,
.weborca-theme .feature-title,
.weborca-theme .step-title,
.weborca-theme .price-value,
.weborca-theme .cta-title { color: var(--text); }
.weborca-theme .detail-lead,
.weborca-theme .prose,
.weborca-theme .feature-desc,
.weborca-theme .step-desc,
.weborca-theme .price-note,
.weborca-theme .price-tax,
.weborca-theme .cta-lead { color: var(--muted); }

/* セクション背景 */
.weborca-theme .detail-section-alt { background: var(--bg-alt); border-block-color: var(--border); }

/* カード類（白＋淡い影） */
.weborca-theme .feature-card,
.weborca-theme .price-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(3, 105, 160, 0.07);
}
.weborca-theme .feature-card:hover {
  border-color: rgba(3, 169, 244, 0.45);
  box-shadow: 0 14px 32px rgba(3, 105, 160, 0.14);
}
.weborca-theme .feature-num { filter: drop-shadow(0 0 8px rgba(3, 169, 244, 0.22)); }
.weborca-theme .price-name { color: var(--accent); }

/* 導入ステップ */
.weborca-theme .step-num {
  background: rgba(3, 169, 244, 0.1);
  border-color: rgba(3, 169, 244, 0.4);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(3, 169, 244, 0.16);
}

/* 注記 */
.weborca-theme .note {
  background: rgba(3, 169, 244, 0.06);
  border-color: rgba(3, 169, 244, 0.22);
  color: var(--muted);
}

/* 支援リスト */
.weborca-theme .support-list li { color: var(--text); border-bottom-color: var(--border); }

/* CTA */
.weborca-theme .cta-box {
  background: linear-gradient(135deg, #eaf7fe 0%, #ffffff 100%);
  border-color: var(--border);
}

/* フッター */
.weborca-theme .footer { background: #eef7fd; border-top-color: var(--border); }
.weborca-theme .footer-logo { -webkit-text-fill-color: initial; color: var(--accent); background: none; }
.weborca-theme .footer-address,
.weborca-theme .footer-nav a,
.weborca-theme .footer-copy,
.weborca-theme .disclaimer { color: var(--muted); }
.weborca-theme .disclaimer { border-bottom-color: var(--border); }
.weborca-theme .footer-nav a:hover { color: var(--text); }

/* システム構成図 */
.weborca-theme .diagram-scroll {
  background: linear-gradient(180deg, #f1faff 0%, #ffffff 100%);
  border-color: var(--border);
}
.weborca-theme .dg-zone { fill: rgba(3, 169, 244, 0.05); stroke: rgba(3, 169, 244, 0.28); }
.weborca-theme .dg-card { fill: #ffffff; stroke: rgba(3, 169, 244, 0.32); }
.weborca-theme .dg-card-net { fill: #f2fbff; }
.weborca-theme .dg-card-key { fill: rgba(3, 169, 244, 0.1); stroke: var(--accent); }
.weborca-theme .dg-cloud { fill: #f2fbff; stroke: rgba(3, 169, 244, 0.38); }
.weborca-theme .dg-head,
.weborca-theme .dg-label { fill: var(--text); }
.weborca-theme .dg-sub { fill: var(--muted); }
.weborca-theme .dg-accent { fill: #0288d1; }
.weborca-theme .dg-ic { stroke: #03a9f4; }
.weborca-theme .dg-icf { fill: #03a9f4; }
.weborca-theme .dg-flow { stroke: #03a9f4; }
.weborca-theme #arrowEnd path,
.weborca-theme #arrowStart path { fill: #03a9f4; }

/* WebORCAクラウド版の構成図（院内 → ネットワーク → クラウド） */
.cz { --c-clinic: #1c7ed6; --c-cloud: #0c8599; margin: 0; }
.cz-grid { display: grid; grid-template-columns: 1.15fr 190px 1fr; gap: 0; align-items: stretch; }
.cz-zone { border: 2px solid color-mix(in srgb, var(--zc) 35%, #ffffff); border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--zc) 5%, #ffffff); }
.cz-clinic { --zc: var(--c-clinic); }
.cz-cloud { --zc: var(--c-cloud); }
.cz-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 16px; color: #ffffff; font-weight: 800; background: var(--zc); }
.cz-head small { font-size: 0.76rem; font-weight: 700; opacity: 0.9; }
.cz-body { display: grid; gap: 10px; padding: 14px; }
.cz-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #ffffff; border: 1px solid color-mix(in srgb, var(--zc) 22%, #ffffff); border-radius: 12px; padding: 10px 12px; }
.cz-ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 10px; background: color-mix(in srgb, var(--zc) 10%, #ffffff); }
.cz-title { font-weight: 800; color: var(--text); line-height: 1.5; }
.cz-spec { list-style: none; margin-top: 4px; font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.cz-spec li::before { content: "・"; }
.cz-noserver { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 1.05rem; font-weight: 800; color: #0b7285; background: #e3fafc; }

/* 真ん中：院内LAN → ファイアウォール → インターネット */
.cz-net { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 18px 10px; }
.cz-net::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: linear-gradient(90deg, var(--c-clinic), var(--c-cloud)); border-radius: 2px; z-index: 0; }
.cz-node { position: relative; z-index: 1; width: 100%; max-width: 170px; text-align: center; font-size: 0.8rem; font-weight: 800; color: var(--text); line-height: 1.5; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 6px; box-shadow: 0 4px 12px rgba(3, 105, 160, 0.08); }
.cz-node-ico { display: block; font-size: 1.4rem; line-height: 1.3; }
.cz-node-net { border-color: var(--c-cloud); }
.cz-tls { position: relative; z-index: 1; text-align: center; font-size: 0.76rem; font-weight: 800; color: var(--c-cloud); line-height: 1.5; background: #e3fafc; border-radius: 99px; padding: 4px 12px; }

.cz-svc { display: grid; gap: 8px; border: 2px solid var(--zc); border-radius: 14px; padding: 0 10px 10px; background: #ffffff; overflow: hidden; }
.cz-svc-head { margin: 0 -10px; padding: 8px 12px; text-align: center; font-weight: 800; color: #ffffff; background: linear-gradient(135deg, var(--c-cloud), #1c7ed6); }
.cz-svc .cz-item { border-color: color-mix(in srgb, var(--zc) 30%, #ffffff); }
.cz-ext { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 0.82rem; font-weight: 800; color: var(--text); border: 2px dashed color-mix(in srgb, var(--zc) 45%, #ffffff); border-radius: 12px; padding: 10px 12px; background: #ffffff; }
.cz-ext small { font-weight: 700; color: var(--muted); }
.cz-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.cz-legend li { display: flex; align-items: center; gap: 8px; }
.cz-lg { width: 26px; height: 3px; background: var(--c-cloud); }
.cz-lg-dash { background: repeating-linear-gradient(90deg, var(--c-cloud) 0 5px, transparent 5px 9px); }
.cz .note { margin-top: 14px; }

@media (max-width: 860px) {
  .cz-grid { grid-template-columns: 1fr; }
  .cz-net { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 0; }
  .cz-net::before { left: 50%; right: auto; top: 0; bottom: 0; width: 4px; height: auto; transform: translateX(-50%); background: linear-gradient(180deg, var(--c-clinic), var(--c-cloud)); }
  .cz-node { max-width: none; font-size: 0.74rem; padding: 8px 4px; }
  .cz-tls { grid-column: 1 / -1; justify-self: center; }
  .cz-tls br { display: none; }
}

/* ==========================================================
   電子カルテ紹介ページ 製品カード（各社ブランドカラーで色分け）
   ========================================================== */
.product-list { display: flex; flex-direction: column; gap: 28px; }

.product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 34px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(3, 105, 160, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  --pc: #2b7ab5;
  --pc-soft: rgba(43, 122, 181, 0.08);
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--pc);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(3, 105, 160, 0.12); }

.prod-m3     { --pc: #0b5019; --pc-soft: rgba(11, 80, 25, 0.08); }
.prod-hiseed { --pc: #004772; --pc-soft: rgba(0, 71, 114, 0.08); }
.prod-clius  { --pc: #6a4fe0; --pc-soft: rgba(106, 79, 224, 0.08); }
.prod-remora  { --pc: #0067b1; --pc-soft: rgba(0, 103, 177, 0.08); }
.prod-tak     { --pc: #b83b6b; --pc-soft: rgba(184, 59, 107, 0.08); }
.prod-movacal { --pc: #00838f; --pc-soft: rgba(0, 131, 143, 0.08); }
.prod-medimo  { --pc: #4c5fd5; --pc-soft: rgba(76, 95, 213, 0.08); }

.product-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pc-soft);
  color: var(--pc);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.product-name { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: #14324c; line-height: 1.4; }
.product-vendor { font-size: 0.85rem; color: var(--muted); margin-top: 4px; margin-bottom: 18px; }
.product-lead { font-size: 1.02rem; font-weight: 600; color: #14324c; margin-bottom: 18px; }

.product-features { list-style: none; margin-bottom: 18px; }
.product-features li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}
.product-features li strong { color: #14324c; }
.product-features li a { color: var(--pc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.product-features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--pc);
  border-bottom: 2.5px solid var(--pc);
  transform: rotate(-45deg);
}

.product-fit {
  background: var(--pc-soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #14324c;
  margin-bottom: 24px;
}
.product-fit strong { color: var(--pc); }

.product-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pc);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
}
.product-link:hover { text-decoration: underline; }
.product-cta {
  background: var(--pc);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pc) 35%, transparent);
}
.product-cta:hover { background: var(--pc); filter: brightness(1.1); box-shadow: 0 10px 24px color-mix(in srgb, var(--pc) 45%, transparent); }

@media (max-width: 768px) {
  .product-card { padding: 28px 22px; }
}

/* ==========================================================
   厚労省トーン（標準電子カルテ・共通算定モジュールページ）
   白基調 × 濃紺 #003399。weborca-theme のライト基盤を継承して上書き。
   ========================================================== */
.mhlw-theme {
  --accent: #003399;
  --accent2: #0650cb;
  --accent-soft: rgba(0, 51, 153, 0.07);
  --border: rgba(0, 51, 153, 0.18);
  --glow: rgba(0, 51, 153, 0.2);
  --text: #1a2740;
  --muted: #566072;
}
.mhlw-theme .detail-hero {
  background: linear-gradient(180deg, #e7eefb 0%, #f6f9fe 55%, #ffffff 100%);
}
.mhlw-theme .feature-card:hover {
  border-color: rgba(0, 51, 153, 0.4);
  box-shadow: 0 14px 32px rgba(0, 51, 153, 0.12);
}
.mhlw-theme .feature-num { filter: drop-shadow(0 0 8px rgba(0, 51, 153, 0.2)); }
.mhlw-theme .note { background: rgba(0, 51, 153, 0.05); border-color: rgba(0, 51, 153, 0.2); }
.mhlw-theme .step-num {
  background: rgba(0, 51, 153, 0.1);
  border-color: rgba(0, 51, 153, 0.4);
  box-shadow: 0 0 12px rgba(0, 51, 153, 0.15);
}
.mhlw-theme .cta-box { background: linear-gradient(135deg, #e7eefb 0%, #ffffff 100%); }
.mhlw-theme .footer { background: #eef2fb; }

/* WebORCA連携の強調帯（標準電子カルテページ） */
.weborca-highlight {
  background: linear-gradient(135deg, #003399 0%, #0650cb 100%);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 51, 153, 0.28);
}
.wh-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 16px;
}
.wh-title {
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.55;
}
.wh-title strong {
  color: #6fe6ff;
  border-bottom: 3px solid rgba(111, 230, 255, 0.5);
  padding-bottom: 2px;
}
.wh-desc { margin-top: 18px; opacity: 0.92; font-size: 0.98rem; line-height: 1.85; }
.wh-cta { margin-top: 26px; }
.weborca-highlight .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 999px;
  background: #ffffff;
  color: #003399;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.weborca-highlight .btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }

@media (max-width: 768px) {
  .weborca-highlight { padding: 36px 24px; }
}

/* Q&A（厚労省ページ風） */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
}
.faq-q {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.7;
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}
.faq-a {
  position: relative;
  margin-top: 12px;
  padding-left: 32px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.96rem;
}
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--muted);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ==========================================================
   自社プロダクトLP（データ提出中間ファイル作成／ORCA経営分析）
   weborca-theme のライト基盤を継承し、各LPの配色で上書きする
   ========================================================== */
.teishutsu-theme {
  --accent: #027a8a;
  --accent2: #0b3c42;
  --accent-soft: rgba(2, 122, 138, 0.08);
  --border: rgba(2, 122, 138, 0.2);
  --glow: rgba(2, 122, 138, 0.2);
  --text: #10282c;
  --muted: #5a6e72;
  --bg-alt: #f0f7f7;
}
.teishutsu-theme .detail-hero { background: linear-gradient(180deg, #dff0f0 0%, #f0f7f7 55%, #ffffff 100%); }
.teishutsu-theme .footer { background: #f0f7f7; }

.orcadash-theme {
  --accent: #1971c2;
  --accent2: #2f9e8f;
  --accent-soft: rgba(25, 113, 194, 0.08);
  --border: rgba(22, 39, 62, 0.14);
  --glow: rgba(25, 113, 194, 0.2);
  --text: #16273e;
  --muted: #55606a;
  --bg-alt: #f5f6f4;
}
.orcadash-theme .detail-hero { background: linear-gradient(180deg, #e6ecf4 0%, #f5f6f4 55%, #ffffff 100%); }
.orcadash-theme .footer { background: #f5f6f4; }

/* 患者属性連携プログラム（インディゴ × ティール） */
.ptlink-theme {
  --accent: #3b5bdb;
  --accent2: #0c8599;
  --accent-soft: rgba(59, 91, 219, 0.08);
  --border: rgba(59, 91, 219, 0.18);
  --glow: rgba(59, 91, 219, 0.2);
  --text: #182040;
  --muted: #565e74;
  --bg-alt: #f2f4fb;
}
.ptlink-theme .detail-hero { background: linear-gradient(180deg, #e3e8fb 0%, #f2f4fb 55%, #ffffff 100%); }
.ptlink-theme .footer { background: #f2f4fb; }

/* 自社LP共通（body に lp-theme を付ける）：スカイブルー前提の値をテーマ色に置き換える */
.lp-theme .detail-title,
.lp-theme .detail-h2,
.lp-theme .cta-title {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
}
.lp-theme .feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 12%, transparent);
}
.lp-theme .feature-num { filter: none; }
.lp-theme .note {
  background: var(--accent-soft);
  border-color: var(--border);
}
.lp-theme .step-num {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: none;
}
.lp-theme .cta-box {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
}

/* 小さなラベル */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pill-muted { background: rgba(90, 110, 114, 0.1); color: var(--muted); }

/* データ提出に必要な4ファイル */
.file-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.file-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.file-card.is-generated {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}
.file-name { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.file-desc { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* 数字で見るポイント */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat-value small { font-size: 0.95rem; margin-left: 2px; }
.stat-label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* 比較表 */
.compare-scroll { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th { background: var(--bg-alt); color: var(--text); font-weight: 700; }
.compare-table thead th.is-ours { background: var(--accent); color: #ffffff; }
.compare-table tbody th { color: var(--text); font-weight: 700; white-space: nowrap; }
.compare-table td { color: var(--muted); }
.compare-table td.is-ours { color: var(--text); font-weight: 600; background: var(--accent-soft); }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .file-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
}
.lp-theme .btn-primary {
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.lp-theme .btn-primary:hover {
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 42%, transparent);
}
.lp-theme .logo-mark { box-shadow: none; }

/* 算定お悩み相談サービス（紺 × テラコッタ） */
.soudan-theme {
  --accent: #c0502a;
  --accent2: #9c3f1f;
  --accent-soft: rgba(192, 80, 42, 0.08);
  --border: rgba(31, 58, 95, 0.16);
  --glow: rgba(192, 80, 42, 0.2);
  --text: #1c2430;
  --muted: #5a6473;
  --bg-alt: #f6f4ef;
}
.soudan-theme .footer { background: #f6f4ef; }

/* 紺地のヒーロー */
.soudan-theme .detail-hero {
  background: linear-gradient(160deg, #1f3a5f 0%, #142842 100%);
  border-bottom: none;
}
.soudan-theme .detail-hero .back-link { color: #b9c7da; }
.soudan-theme .detail-hero .back-link:hover { color: #ffffff; }
.soudan-theme .detail-hero .detail-eyebrow { color: #e9b9a6; }
.soudan-theme .detail-hero .detail-title { color: #ffffff; }
.soudan-theme .detail-hero .detail-lead { color: #dbe3ee; }
.soudan-theme .detail-hero .brand-note { color: #b9c7da; }

/* ヒーロー内の料金カード */
.hero-price {
  display: inline-block;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 32px;
  margin-bottom: 28px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.hero-price-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.hero-price-value { font-size: 1rem; font-weight: 700; color: var(--text); }
.hero-price-value strong { font-size: 2.3rem; font-weight: 800; color: var(--accent); margin: 0 4px; }

/* 担当者紹介 */
.person-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.person-role { font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.person-name { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 4px 0 10px; }
.person-desc { color: var(--muted); font-size: 0.96rem; line-height: 1.85; }

/* サービス概要の表 */
.spec-table {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.spec-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { padding: 16px 20px; background: var(--bg-alt); font-weight: 700; font-size: 0.92rem; color: var(--text); }
.spec-row dd { padding: 16px 20px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 600px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { padding-bottom: 6px; }
  .spec-row dd { padding-top: 6px; background: var(--bg-alt); }
}

/* カルテの「お宝」ひろい上げサポート（オレンジ × ゴールド × ティール） */
.otakara-theme {
  --accent: #b8521a;
  --accent2: #8f3d10;
  --accent-soft: rgba(184, 82, 26, 0.08);
  --border: rgba(143, 61, 16, 0.18);
  --glow: rgba(184, 82, 26, 0.2);
  --text: #2b2320;
  --muted: #5e534b;
  --bg-alt: #fbf7f0;
}
.otakara-theme .detail-hero { background: linear-gradient(180deg, #f7ecdc 0%, #fbf7f0 60%, #ffffff 100%); }
.otakara-theme .footer { background: #fbf7f0; }
.otakara-theme .detail-title,
.otakara-theme .detail-h2,
.otakara-theme .cta-title { font-family: inherit; }
.otakara-theme .hero-price { border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(143, 61, 16, 0.12); }

.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.prose strong { color: var(--accent); }

/* 「取り組み ＋ 鑑定 ＝ お宝」の図 */
.eq-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.eq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
}
.eq-card.is-result { background: #f2b544; border-color: #f2b544; }
.eq-label { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.eq-card.is-result .eq-label { color: #5a3408; }
.eq-text { font-size: 0.98rem; font-weight: 600; color: var(--text); line-height: 1.7; }
.eq-op { align-self: center; font-size: 1.7rem; font-weight: 800; color: var(--accent); text-align: center; }

/* ステップ内の「声かけ」の例 */
.step-quote {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* 「見つからなかったら？」の太鼓判カード */
.assure-card {
  margin-top: 24px;
  background: #ffffff;
  border: 2px solid #f2b544;
  border-radius: 18px;
  padding: 28px;
}
.assure-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.assure-text { color: var(--muted); font-size: 0.96rem; line-height: 1.85; }
.assure-text strong { color: var(--accent); }

/* ティール地のCTA */
.otakara-theme .cta-box { background: #1e5a5f; border-color: #1e5a5f; }
.otakara-theme .cta-box .section-label { color: #f2b544; }
.otakara-theme .cta-box .cta-title { color: #ffffff; }
.otakara-theme .cta-box .cta-lead { color: #d6e6e7; }
.otakara-theme .cta-box .btn-primary { background: #f2b544; color: #2b2320; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

@media (max-width: 768px) {
  .eq-row { grid-template-columns: 1fr; }
}

/* LINEで問い合わせるボタン（LINEのブランドカラー） */
.btn-line {
  background: #06c755;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(6, 199, 85, 0.42);
}

/* LINEの友だち追加QR（パソコンで見ている人向け。スマホではボタンで足りるので隠す） */
.line-qr {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 12px 22px 12px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}
.line-qr img { width: 120px; height: 120px; }
.line-qr p { font-size: 0.86rem; line-height: 1.7; color: #55606a; }
@media (max-width: 768px) {
  .line-qr { display: none; }
}

/* トップのお問い合わせ欄：フォームの上に置くLINEの案内 */
.line-contact { text-align: center; margin-bottom: 40px; }
.line-contact-text { color: var(--muted); margin-bottom: 16px; }
.line-contact .line-qr { margin-top: 20px; }

/* パンフレット請求ボタン（自社LP。紺・ティール・白どの背景でも読めるよう白地にする） */
.btn-pamphlet {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--border);
}
.btn-pamphlet:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.form-hint { margin-top: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* パンフレットのダウンロード画面（pamphlet.php） */
.pamphlet-hero { min-height: calc(100vh - 260px); display: flex; align-items: center; }
.pamphlet-note { margin-top: 18px; font-size: 0.85rem; opacity: 0.8; }
.soudan-theme .pamphlet-note { color: #dbe3ee; }

/* 料金のお支払い先ごとの見出し（WebORCA：提供元の利用料と当社費用を区別する） */
.price-group-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-weight: 800; font-size: 1.05rem; color: var(--text);
  margin: 36px 0 14px;
}
.section-head + .price-group-title { margin-top: 8px; }
.price-group-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #ffffff; font-size: 0.9rem;
}
.price-group-to {
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 99px; padding: 3px 12px;
}
.price-card-ours { border-width: 2px; border-color: var(--accent); }

/* LINE の友だち向け資料一覧（pamphlet.php?line=…） */
.pamphlet-list { list-style: none; margin: 8px auto 0; max-width: 560px; display: grid; gap: 12px; text-align: left; }
.pamphlet-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px;
}
.pamphlet-list-title { font-weight: 700; color: var(--text); font-size: 0.95rem; line-height: 1.5; }
.pamphlet-list .btn { flex: none; min-height: 44px; }

/* 会社情報の電話番号（スマホでタップしやすい高さを確保） */
.company-table a[href^="tel:"] { display: inline-block; min-height: 44px; line-height: 44px; color: var(--text); }

/* ==========================================================
   経営ダッシュボードLP：画面イメージ（数値は架空）
   ========================================================== */
.mock-hero-section { padding-top: 8px; }
.mock {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(22, 39, 62, 0.12);
  overflow: hidden;
  color: #16273e;
}
.mock-lg { max-width: 960px; margin: 0 auto; }
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #eef1f5; border-bottom: 1px solid rgba(22, 39, 62, 0.08);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd6de; }
.mock-dot:nth-child(1) { background: #ff8a80; }
.mock-dot:nth-child(2) { background: #ffd180; }
.mock-dot:nth-child(3) { background: #a5d6a7; }
.mock-url {
  margin-left: 10px; flex: 1; min-width: 0;
  font-size: 0.75rem; color: #6b7785; background: #ffffff; border-radius: 6px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-body { padding: 20px; background: #f7f8fa; }
.mock-note { margin-top: 12px; text-align: center; font-size: 0.8rem; color: var(--muted); }

.mk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mk-title { font-size: 1.15rem; font-weight: 800; }
.mk-badge { white-space: nowrap; font-size: 0.7rem; font-weight: 700; color: #1971c2; background: #e7f1fb; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.mk-btns { display: flex; gap: 6px; }
.mk-btns span { font-size: 0.72rem; font-weight: 700; color: #ffffff; background: #1971c2; border-radius: 6px; padding: 5px 10px; }
.mk-btns span + span { background: #495057; }
.mk-period {
  margin: 12px 0; padding: 10px 14px; border-radius: 10px;
  background: #e7f3ff; border: 1px solid #b6d8f7; color: #1864ab; font-weight: 700; font-size: 0.88rem;
}
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mk-kpi { background: #ffffff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(22, 39, 62, 0.08); }
.mk-kpi-label { font-size: 0.72rem; color: #6b7785; line-height: 1.4; }
.mk-kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.mk-kpi-value small { font-size: 0.8rem; margin-left: 2px; }
.mk-panel { margin-top: 10px; background: #ffffff; border-radius: 10px; padding: 12px 14px 6px; box-shadow: 0 1px 3px rgba(22, 39, 62, 0.08); }
.mk-panel-title { font-size: 0.85rem; font-weight: 800; margin-bottom: 6px; }
.mk-chart { display: block; width: 100%; height: auto; }
.mk-chart .mk-grid { stroke: #e9ecef; stroke-width: 1; }
.mk-chart .mk-tick { fill: #868e96; font-size: 12px; }
.mk-chart .mk-label { fill: #343a40; font-size: 14px; font-weight: 700; }
.mk-chart .mk-value { fill: #343a40; font-size: 13px; font-weight: 700; }
.mock-lg .mk-chart .mk-tick { font-size: 9px; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: #495057; margin-bottom: 4px; }
.mk-legend span::before {
  content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  background: var(--c); margin-right: 5px; vertical-align: -1px;
}

.mk-findings { display: grid; gap: 10px; }
.mk-finding { border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; line-height: 1.7; }
.mk-finding.is-good { background: #ebfbee; border: 1px solid #b2f2bb; }
.mk-finding.is-warn { background: #fff4e6; border: 1px solid #ffd8a8; }
.mk-finding-title { font-weight: 800; margin-bottom: 4px; }
.mk-finding.is-good .mk-finding-title { color: #2b8a3e; }
.mk-finding.is-warn .mk-finding-title { color: #d9480f; }
.mk-finding ul { padding-left: 1.2em; }

.mk-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 10px; overflow: hidden; font-size: 0.85rem; }
.mk-table th, .mk-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f3; text-align: left; }
.mk-table thead th { background: #f1f3f5; font-size: 0.75rem; color: #495057; }
.mk-table tr:last-child td { border-bottom: none; }
.mk-tag { font-size: 0.7rem; font-weight: 700; color: #ffffff; background: #e8590c; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.mk-tag.is-mid { background: #f59f00; }

/* しくみ図 */
.flow-diagram { list-style: none; display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.flow-node {
  flex: 1; background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 16px; text-align: center;
}
.flow-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); margin-bottom: 10px;
}
.flow-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-title { font-weight: 800; color: var(--text); }
.flow-desc { font-size: 0.85rem; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.flow-arrow { align-self: center; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.flow-safe {
  margin-top: 20px; text-align: center; font-weight: 700; color: var(--text);
  background: #ffffff; border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 16px; font-size: 0.92rem;
}

/* 画面で見る主な機能 */
.showcase { display: grid; gap: 56px; margin-top: 8px; }
.showcase-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.showcase-row:nth-child(even) .mock { order: 2; }
.showcase-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 10px 0 10px; line-height: 1.5; }
.showcase-desc { color: var(--muted); line-height: 1.9; }
.more-box { margin-top: 56px; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; }
.more-title { font-weight: 700; color: var(--text); margin-bottom: 14px; }
.more-title strong { color: var(--accent); font-size: 1.2em; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-list li { font-size: 0.85rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; color: var(--text); }

@media (max-width: 860px) {
  .showcase-row { grid-template-columns: 1fr; gap: 20px; }
  .showcase-row:nth-child(even) .mock { order: 0; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .mk-kpis { grid-template-columns: repeat(2, 1fr); }
  .mk-kpi-value { font-size: 1.25rem; }
  .mock-body { padding: 14px; }
  .mk-btns { display: none; }
  .mk-chart .mk-tick, .mock-lg .mk-chart .mk-tick { font-size: 16px; }
  .mk-chart .mk-label { font-size: 15px; }
  .mk-table { font-size: 0.75rem; }
  .mk-table th, .mk-table td { padding: 7px 5px; white-space: nowrap; }
  .flow-node { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; padding: 16px; align-items: center; }
  .flow-icon { grid-row: span 2; margin-bottom: 0; width: 48px; height: 48px; }
  .flow-desc { margin-top: 2px; }
  .flow-arrow { font-size: 1.2rem; text-align: center; }
  .mk-chart .mk-value { font-size: 16px; }
}

/* 経営ダッシュボードLP：さわれるデモ */
.demo-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.seg { display: inline-flex; background: #ffffff; border: 1px solid var(--border); border-radius: 99px; padding: 4px; }
.seg-btn {
  min-height: 44px; padding: 0 18px; border: none; border-radius: 99px; background: transparent;
  font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.seg-btn[aria-pressed="true"] { background: var(--accent); color: #ffffff; }
.seg-btn:focus-visible, .switch:focus-visible { outline: 3px solid rgba(25, 113, 194, 0.35); outline-offset: 2px; }
.ai-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.switch {
  position: relative; width: 64px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 0;
}
.switch::before {
  content: ''; position: absolute; left: 4px; right: 4px; top: 8px; bottom: 8px;
  border-radius: 99px; background: #ced4da; transition: background 0.25s;
}
.switch-knob {
  position: absolute; top: 11px; left: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s;
}
.switch[aria-checked="true"]::before { background: linear-gradient(135deg, #7048e8, #1971c2); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(28px); }
.ai-switch-state { min-width: 4.5em; font-size: 0.9rem; color: var(--muted); }
.demo-hint { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 10px 0 18px; }

.mk-delta { font-size: 0.72rem; font-weight: 700; margin-top: 2px; }
.mk-delta.is-good { color: #2b8a3e; }
.mk-delta.is-bad { color: #e03131; }
.mk-delta.is-flat { color: #868e96; }
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; align-items: stretch; }
.mk-split .mk-panel { margin-top: 0; }
.mk-chart .mk-bar { fill: #1971c2; transform-box: fill-box; transform-origin: bottom; animation: mkGrow 0.5s ease-out both; }
.mk-chart .mk-bar:last-of-type { fill: #2f9e8f; }
@keyframes mkGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.mk-insight { min-height: 210px; }
.mk-ai-badge {
  margin-left: 8px; white-space: nowrap; display: inline-block; font-size: 0.68rem; font-weight: 700; color: #ffffff;
  background: linear-gradient(135deg, #7048e8, #1971c2); border-radius: 99px; padding: 2px 8px; vertical-align: 1px;
}
.mk-rules { list-style: none; display: grid; gap: 6px; font-size: 0.82rem; line-height: 1.6; }
.mk-rules li { padding: 6px 10px 6px 28px; border-radius: 8px; position: relative; }
.mk-rules li::before { position: absolute; left: 9px; top: 6px; font-weight: 800; }
.mk-rules li.is-good { background: #ebfbee; }
.mk-rules li.is-good::before { content: '↑'; color: #2b8a3e; }
.mk-rules li.is-warn { background: #fff4e6; }
.mk-rules li.is-warn::before { content: '!'; color: #d9480f; }
.mk-rules strong { font-size: 1.05em; }
.mk-ai { font-size: 0.82rem; line-height: 1.7; }
.mk-ai-summary { background: #f3f0ff; border-left: 3px solid #7048e8; border-radius: 0 8px 8px 0; padding: 8px 10px; }
.mk-ai-sub { font-weight: 800; margin: 8px 0 4px; }
.mk-ai-actions { padding-left: 1.4em; display: grid; gap: 4px; }
.mk-ai-actions strong { display: block; }
.mk-ai-basis { font-size: 0.72rem; color: #6b7785; }
.mk-ai-note { margin-top: 8px; font-size: 0.7rem; color: #6b7785; }
.mk-ai-thinking { color: #7048e8; font-weight: 700; font-size: 0.85rem; padding: 12px 0; }
.mk-ai-thinking::after { content: '…'; display: inline-block; animation: mkBlink 0.9s steps(4) infinite; }
@keyframes mkBlink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.is-enter { animation: mkEnter 0.35s ease-out both; }
@keyframes mkEnter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* AIの選び方 */
.ai-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ai-option { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; }
.ai-option-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 10px;
}
.ai-option-tag.is-ai { color: #ffffff; background: linear-gradient(135deg, #7048e8, #1971c2); }
.ai-option-tag.is-paid, .plan-ai-tag.is-paid { color: #ffffff; background: #e8590c; }
.ai-option-tag.is-own, .plan-ai-tag.is-own { color: #495057; background: #e9ecef; }
.ai-option-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-option-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
.ai-option-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.ai-promises { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.ai-promises p { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.ai-promises strong { display: block; color: var(--text); margin-bottom: 4px; }

@media (max-width: 860px) {
  .mk-split { grid-template-columns: 1fr; }
  .ai-options { grid-template-columns: 1fr 1fr; }
  .ai-promises { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ai-options { grid-template-columns: 1fr; }
  .seg-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-chart .mk-bar, .is-enter, .mk-ai-thinking::after { animation: none; }
}
#demoChart .mk-chart .mk-tick { font-size: 15px; }
#demoChart .mk-chart .mk-value { font-size: 15px; }
.ai-option-tag.is-soon { color: #868e96; background: #f1f3f5; }

/* 経営ダッシュボードLP：患者分布マップ（架空の地図） */
.mk-map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-map-head .mk-panel-title { margin-bottom: 0; }
.mk-map-switch { display: inline-flex; background: #ffffff; border: 1px solid #dee2e6; border-radius: 99px; padding: 3px; }
.mk-map-btn {
  min-height: 44px; padding: 0 14px; border: none; border-radius: 99px; background: transparent;
  font: inherit; font-size: 0.78rem; font-weight: 700; color: #6b7785; cursor: pointer;
}
.mk-map-btn[aria-pressed="true"] { background: #1971c2; color: #ffffff; }
.mk-map-btn:focus-visible { outline: 3px solid rgba(25, 113, 194, 0.35); outline-offset: 2px; }
.mk-map { border-radius: 8px; }
.mk-map .mk-area { stroke: #ffffff; stroke-width: 1.5; transition: fill 0.4s; }
.mk-map .mk-area-name { font-size: 12px; font-weight: 700; transition: opacity 0.3s; }
.mk-map .mk-area-num { font-size: 11px; transition: opacity 0.3s; }
.mk-map .mk-clinic-label { font-size: 12px; font-weight: 800; fill: #c92a2a; paint-order: stroke; stroke: #ffffff; stroke-width: 3px; }
.mk-map .mk-heat { opacity: 0; transition: opacity 0.4s; }
.is-heat .mk-map .mk-area { fill: #e9eef3; }
.is-heat .mk-map .mk-area-name { fill: #495057; }
.is-heat .mk-map .mk-area-num { opacity: 0; }
.is-heat .mk-map .mk-heat { opacity: 1; }
.mk-map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.72rem; color: #495057; margin-top: 8px; transition: opacity 0.3s; }
.mk-map-legend span::before {
  content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  background: var(--c); border: 1px solid rgba(0, 0, 0, 0.08); margin-right: 5px; vertical-align: -1px;
}
.is-heat .mk-map-legend { opacity: 0.35; }
@media (max-width: 600px) {
  .mk-map .mk-area-name { font-size: 14px; }
  .mk-map .mk-area-num { font-size: 13px; }
}

/* 地図のレイヤー：看板候補の駅・開拓エリア・季節のピーク */
.mk-map-switch { flex-wrap: wrap; border-radius: 22px; }
.mk-map .mk-station, .mk-map .mk-dev, .mk-map .mk-season { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.is-station .mk-map .mk-station, .is-dev .mk-map .mk-dev, .is-season .mk-map .mk-season { opacity: 1; }
.is-station .mk-map .mk-area { fill-opacity: 0.45; }
.is-station .mk-map .mk-area-num, .is-dev .mk-map .mk-area-num, .is-season .mk-map .mk-area-num { opacity: 0; }
.is-dev .mk-map .mk-area, .is-season .mk-map .mk-area { fill: #e9eef3; }
.is-dev .mk-map .mk-area-name, .is-season .mk-map .mk-area-name { fill: #868e96; }
.is-dev .mk-map .mk-area-name { opacity: 0.6; }
.mk-map .mk-station-num { font-size: 13px; font-weight: 800; fill: #ffffff; }
.mk-map .mk-station-label, .mk-map .mk-dev-name, .mk-map .mk-season-dir {
  font-size: 13px; font-weight: 800; fill: #343a40; paint-order: stroke; stroke: #ffffff; stroke-width: 4px;
}
.mk-map .mk-station-label { fill: #d9480f; }
.mk-map .mk-dev-name { fill: #2b8a3e; }
.mk-map .mk-dev-rate { font-size: 11px; font-weight: 700; fill: #2b8a3e; paint-order: stroke; stroke: #ffffff; stroke-width: 3px; }
.mk-map .mk-season-mark { font-size: 15px; font-weight: 800; fill: #ffffff; }
.mk-map .mk-season-dir { font-size: 11px; }
.mk-map-figure .mk-map-legend[data-for], .mk-map-hint { display: none; }
.is-area .mk-map-legend[data-for~="area"], .is-heat .mk-map-legend[data-for~="heat"], .is-season .mk-map-legend[data-for~="season"],
.is-area .mk-map-hint[data-for="area"], .is-heat .mk-map-hint[data-for="heat"], .is-station .mk-map-hint[data-for="station"],
.is-dev .mk-map-hint[data-for="dev"], .is-season .mk-map-hint[data-for="season"] { display: flex; }
.mk-map-hint { margin-top: 8px; font-size: 0.8rem; color: #495057; line-height: 1.7; background: #ffffff; border-radius: 8px; padding: 8px 12px; flex-wrap: wrap; }
.mk-map-hint strong { margin-right: 4px; }
.mk-map-legend-note { color: #868e96; }
.mk-map-legend-note::before { display: none !important; }
.showcase-sub { margin-top: 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.8; }

/* 強みと伸びしろレポート（A4風） */
.mk-paper .mock-body { background: #ffffff; }
.mk-report-head { border-bottom: 2px solid #1971c2; padding-bottom: 8px; margin-bottom: 10px; }
.mk-report-title { font-size: 1.05rem; font-weight: 800; color: #16273e; }
.mk-report-sub { font-size: 0.75rem; color: #868e96; }
.mk-judges { list-style: none; display: grid; gap: 6px; }
.mk-judges li {
  display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 8px; background: #f8f9fa;
}
.mk-judge { grid-row: span 2; text-align: center; font-size: 0.75rem; font-weight: 800; color: #ffffff; border-radius: 99px; padding: 4px 0; }
.mk-judge.is-strong { background: #1971c2; }
.mk-judge.is-ok { background: #2f9e44; }
.mk-judge.is-grow { background: #f08c00; }
.mk-judge.is-gem { background: #ae3ec9; }
.mk-judge.is-pending { background: #adb5bd; }
.mk-judge-name { font-size: 0.85rem; font-weight: 800; color: #212529; }
.mk-judge-note { font-size: 0.75rem; color: #6b7785; }

/* 公開データとの比較 */
.mk-tag.is-done { background: #adb5bd; }
.mk-tag.is-gem { background: #ae3ec9; }
.mk-gap { margin-top: 14px; }
.mk-bench { display: grid; gap: 6px; background: #ffffff; border-radius: 10px; padding: 10px 12px; }
.mk-bench-row { display: grid; grid-template-columns: 40px 1fr 54px; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #343a40; }
.mk-bench-bar { height: 14px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.mk-bench-bar span { display: block; height: 100%; background: #1971c2; border-radius: 99px; }
.is-national .mk-bench-bar span { background: #adb5bd; }
.mk-bench-val { text-align: right; }
.mk-bench-src { margin-top: 6px; font-size: 0.68rem; color: #868e96; }

/* プランはひとつ（全部入り）＋ AIはオプション */
.plan-one {
  position: relative; background: #ffffff; border: 2px solid var(--accent); border-radius: 22px; padding: 34px 32px 28px;
  box-shadow: 0 18px 40px rgba(25, 113, 194, 0.12);
}
.plan-one-head { text-align: center; margin-bottom: 20px; }
.plan-one-badge {
  display: inline-block; font-size: 0.78rem; font-weight: 800; color: #ffffff; background: var(--grad);
  border-radius: 99px; padding: 4px 16px; margin-bottom: 10px;
}
.plan-one-name { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.plan-one-target { font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-top: 4px; }
.plan-one-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; border-top: 1px dashed var(--border); padding-top: 18px; }
.plan-one-list li { position: relative; padding-left: 22px; font-size: 0.93rem; color: var(--text); line-height: 1.65; }
.plan-one-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.plan-one-ai { margin-top: 22px; background: var(--bg-alt); border-radius: 14px; padding: 18px 20px; }
.plan-one-ai-title { font-weight: 800; color: var(--text); margin-bottom: 10px; }
.plan-ai-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.plan-ai-list li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text); line-height: 1.5; }
.plan-ai-tag { flex-shrink: 0; font-size: 0.72rem; font-weight: 800; border-radius: 99px; padding: 2px 10px; color: #1971c2; background: #e7f1fb; }
.plan-ai-tag.is-ai { color: #ffffff; background: linear-gradient(135deg, #7048e8, #1971c2); }
.plan-ai-tag.is-soon { color: #868e96; background: #f1f3f5; }
@media (max-width: 700px) {
  .plan-one { padding: 28px 20px 22px; }
  .plan-one-list, .plan-ai-list { grid-template-columns: 1fr; }
}

/* 介護DX（若葉色：やさしい緑） */
.kaigo-theme {
  --accent: #2b8a3e;
  --accent2: #40a061;
  --accent-soft: rgba(43, 138, 62, 0.08);
  --border: rgba(43, 138, 62, 0.2);
  --glow: rgba(43, 138, 62, 0.2);
  --text: #1d2b22;
  --muted: #56645b;
  --bg-alt: #f2f8f3;
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}
.kaigo-theme .detail-hero { background: linear-gradient(180deg, #e3f3e6 0%, #f4faf5 55%, #ffffff 100%); }
.kaigo-theme .feature-card:hover { border-color: rgba(43, 138, 62, 0.4); box-shadow: 0 14px 32px rgba(43, 138, 62, 0.12); }
.kaigo-theme .note { background: rgba(43, 138, 62, 0.05); border-color: rgba(43, 138, 62, 0.2); }
.kaigo-theme .step-num { background: rgba(43, 138, 62, 0.1); border-color: rgba(43, 138, 62, 0.4); box-shadow: 0 0 12px rgba(43, 138, 62, 0.15); }
.kaigo-theme .cta-box { background: linear-gradient(135deg, #e3f3e6 0%, #ffffff 100%); }
.kaigo-theme .footer { background: #f2f8f3; }
.kaigo-theme .btn-primary { background: var(--grad); box-shadow: 0 6px 18px rgba(43, 138, 62, 0.28); }

.kaigo-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kaigo-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: 18px; padding: 26px 22px;
  display: flex; flex-direction: column;
}
.kaigo-card-tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 99px; padding: 3px 12px;
}
.kaigo-card-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 12px 0 4px; line-height: 1.45; }
.kaigo-card-sub { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.kaigo-card-from { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.kaigo-card-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.85; }
.kaigo-card-points { list-style: none; margin-top: auto; padding-top: 14px; display: grid; gap: 6px; }
.kaigo-card-points li {
  position: relative; padding-left: 20px; font-size: 0.85rem; color: var(--text); line-height: 1.6;
}
.kaigo-card-points li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 900px) {
  .kaigo-systems { grid-template-columns: 1fr; }
}

/* 医療機関向けメッセージ：見出しを途中で折り返さないよう、スマホでは枠の余白を詰める */
@media (max-width: 600px) {
  .pledge { padding: 48px 18px; }
  .pledge-title { font-size: clamp(1.05rem, 5.6vw, 1.4rem); letter-spacing: 0; }
}

/* ==========================================================
   ITコンサル・ネットワーク・業務効率化・AI の詳細ページ
   svc-theme が共通の装飾、○○-theme が配色（--rgb はアクセントのRGB値）
   ========================================================== */
.consult-theme { --accent: #3949ab; --accent2: #5c6bc0; --rgb: 57, 73, 171; --hero: #e8eaf8; --bg-alt: #f3f4fb; --text: #1c2340; --muted: #565d78; }
.net-theme     { --accent: #0e7490; --accent2: #0891b2; --rgb: 14, 116, 144; --hero: #e0f2f6; --bg-alt: #f0f8fa; --text: #14303a; --muted: #50666e; }
.eff-theme     { --accent: #c2410c; --accent2: #ea580c; --rgb: 194, 65, 12; --hero: #fdeee4; --bg-alt: #fdf6f1; --text: #33221a; --muted: #6b5a51; }
.ai-theme      { --accent: #6d28d9; --accent2: #8b5cf6; --rgb: 109, 40, 217; --hero: #efe8fc; --bg-alt: #f7f3fe; --text: #241a3a; --muted: #5f5675; }
.svc-theme {
  --accent-soft: rgba(var(--rgb), 0.08);
  --border: rgba(var(--rgb), 0.2);
  --glow: rgba(var(--rgb), 0.2);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
}
.svc-theme .detail-hero { background: linear-gradient(180deg, var(--hero) 0%, #fafaff 55%, #ffffff 100%); }
.svc-theme .logo-mark { box-shadow: 0 6px 16px rgba(var(--rgb), 0.3); }
.svc-theme .nav-link:hover { background: rgba(var(--rgb), 0.08); }
.svc-theme .back-link:hover { color: var(--accent2); }
.svc-theme .btn-primary { background: var(--grad); box-shadow: 0 6px 18px rgba(var(--rgb), 0.28); }
.svc-theme .btn-primary:hover { box-shadow: 0 10px 26px rgba(var(--rgb), 0.38); }
.svc-theme .feature-card:hover { border-color: rgba(var(--rgb), 0.4); box-shadow: 0 14px 32px rgba(var(--rgb), 0.12); }
.svc-theme .feature-num { filter: drop-shadow(0 0 8px rgba(var(--rgb), 0.2)); }
.svc-theme .note { background: rgba(var(--rgb), 0.05); border-color: rgba(var(--rgb), 0.2); }
.svc-theme .step-num { background: rgba(var(--rgb), 0.1); border-color: rgba(var(--rgb), 0.4); box-shadow: 0 0 12px rgba(var(--rgb), 0.15); }
.svc-theme .cta-box { background: linear-gradient(135deg, var(--hero) 0%, #ffffff 100%); }
.svc-theme .footer { background: var(--bg-alt); }

/* メニューカード（見出し＋箇条書き） */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.menu-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px;
  display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(var(--rgb), 0.12); }
.menu-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.menu-card-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #ffffff; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--rgb), 0.25);
}
.menu-card-icon svg { width: 24px; height: 24px; }
.menu-card-title { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.45; }
.menu-card-desc { font-size: 0.93rem; color: var(--muted); line-height: 1.85; }
.menu-card-list { list-style: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); display: grid; gap: 7px; }
.menu-card-list li { position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--text); line-height: 1.65; }
.menu-card-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.menu-card-link { margin-top: auto; padding-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.menu-card-link a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.menu-card-link a:hover { text-decoration: underline; }

/* ネットワークの区分け図 */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.zone {
  border: 2px solid rgba(var(--rgb), 0.35); border-radius: 18px; padding: 22px 20px; background: #ffffff;
}
.zone-safe { border-color: var(--accent); background: rgba(var(--rgb), 0.04); }
.zone-guest { border-style: dashed; }
.zone-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.zone-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 4px 0 12px; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-chips span {
  font-size: 0.8rem; color: var(--text); background: rgba(var(--rgb), 0.08); border-radius: 99px; padding: 4px 11px;
}
.zone-caption { margin-top: 18px; font-size: 0.9rem; color: var(--muted); text-align: center; line-height: 1.8; }
.zone-caption strong { color: var(--accent); }

/* よくある手間 → こう変わる */
.ba-list { list-style: none; display: grid; gap: 14px; }
.ba-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px;
}
.ba-before, .ba-after { border-radius: 14px; padding: 18px 20px; font-size: 0.93rem; line-height: 1.7; }
.ba-before { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.1); color: var(--muted); }
.ba-after { background: rgba(var(--rgb), 0.07); border: 1px solid rgba(var(--rgb), 0.3); color: var(--text); font-weight: 600; }
.ba-tag { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 4px; }
.ba-before .ba-tag { color: #8a8a8a; }
.ba-after .ba-tag { color: var(--accent); }
.ba-arrow { display: grid; place-items: center; color: var(--accent); font-size: 1.4rem; font-weight: 800; }

/* 大切にしていること（3つの約束） */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise {
  text-align: center; background: #ffffff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 22px;
}
.promise-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; color: #ffffff; background: var(--grad); margin-bottom: 12px;
}
.promise-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.promise-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; text-align: left; }

/* 関連サービスへの誘導 */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card {
  display: block; text-decoration: none; color: inherit; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 20px;
  transition: transform 0.3s, border-color 0.3s;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.related-eyebrow { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.related-title { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 4px 0 6px; }
.related-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }
.related-more { display: inline-block; margin-top: 10px; font-size: 0.86rem; font-weight: 700; color: var(--accent); }

@media (max-width: 900px) {
  .menu-grid, .zone-grid, .promise-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .menu-card { padding: 24px 20px; }
  .ba-list { gap: 30px; }
  .ba-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-arrow { transform: rotate(90deg); font-size: 1.2rem; }
}

/* ==========================================================
   触りたくなるUIの動き（main.js と対応）
   ========================================================== */

/* 波紋ボタン */
.btn, .tile-btn, .seg-btn { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.22; transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }


/* マグネットボタン：translate を JS が動かす */
.hero-actions .btn, .cta .btn, .nav-cta { transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, translate 0.25s ease-out; }

/* カードの縁がカーソルの位置で光る（グローエッジ） */
.glow-edge::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), var(--accent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s;
}
.glow-edge:hover::after { opacity: 1; }
.feature-card.glow-edge, .menu-card.glow-edge, .kaigo-card.glow-edge, .related-card.glow-edge { position: relative; }

/* チャットボタン：ときどき波紋が広がって存在を知らせる */
.chatbot-toggle { position: relative; }
.chatbot-toggle::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--accent);
  animation: pulse-ring 3.2s ease-out infinite;
}
.chatbot.is-open .chatbot-toggle::before { animation: none; opacity: 0; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  45%, 100% { transform: scale(1.6); opacity: 0; }
}

/* よくある質問：折りたたみアコーディオン */
.faq-item.is-accordion { padding: 0; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item.is-accordion.is-open { border-color: rgba(var(--rgb, 3, 169, 244), 0.4); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06); }
.faq-item.is-accordion .faq-q { padding-left: 0; }
.faq-item.is-accordion .faq-q::before { display: none; }
.faq-toggle {
  position: relative; display: block; width: 100%; min-height: 44px; padding: 22px 56px 22px 58px;
  background: none; border: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.faq-toggle::before {
  content: 'Q'; position: absolute; left: 26px; top: 21px; color: var(--accent); font-weight: 800; font-size: 1.1rem;
}
.faq-toggle::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.3s;
}
.faq-item.is-open .faq-toggle::after { transform: rotate(225deg); margin-top: -2px; }
.faq-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-item.is-accordion .faq-a { margin: 0 26px 22px; padding-left: 32px; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }
.faq-item.is-open .faq-a { opacity: 1; transform: none; }

/* ヘッダーメニュー：すべるハイライト */
.nav-list { position: relative; }
.nav-pill {
  position: absolute; left: 0; top: 0; height: 44px; border-radius: 8px; z-index: -1; pointer-events: none;
  background: var(--accent-soft); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1), width 0.3s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.2s;
}
.nav-list.has-pill .nav-pill { opacity: 1; }
.nav-list.has-pill .nav-link:hover { background: transparent; }
.nav-list { isolation: isolate; }

/* 詳細ページの読み進みバー */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
}

/* フォーム：未入力の欄がぷるっと揺れる／送信完了のチェック */
.form-input.is-invalid { border-color: rgba(248, 113, 113, 0.7); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.form-input.is-shake { animation: shake 0.42s; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.form-note.is-success { display: flex; align-items: center; gap: 12px; }
.success-check { flex-shrink: 0; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: draw 0.5s ease-out forwards; }
.success-check path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw 0.35s 0.45s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 600px) {
  .faq-toggle { padding: 18px 44px 18px 46px; }
  .faq-toggle::before { left: 18px; top: 17px; }
  .faq-toggle::after { right: 18px; }
  .faq-item.is-accordion .faq-a { margin: 0 18px 18px; padding-left: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle::before, .ripple { display: none; }
}

/* ==========================================================
   楽しいUIの動き（第2弾）
   ========================================================== */

/* 押すとぷにっと縮んで、離すと弾んで戻る（バウンス） */
.btn, .tile-btn, .seg-btn, .mk-map-btn, .quick-btn, .chatbot-toggle {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quick-btn:active, .quick-btn:hover:active {
  transform: scale(0.93); transition-duration: 0.08s;
}
.seg-btn:active, .mk-map-btn:active { transform: scale(0.92); transition-duration: 0.08s; }
.chatbot-toggle:active, .chatbot-toggle:hover:active { transform: scale(0.88); transition-duration: 0.08s; }

/* 白いボタン・枠だけのボタン：ホバーで縁をぐるっと光が走る（発光ネオン） */
@property --neon-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-pamphlet::before, .tile-btn-more::before, .btn-outline::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--neon-angle), transparent 0 62%, var(--accent2, #4fc3f7) 78%, var(--accent) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s;
}
.btn-pamphlet:hover::before, .tile-btn-more:hover::before, .btn-outline:hover::before {
  opacity: 1; animation: neon-run 1.6s linear infinite;
}
.tile-btn-more::before { background: conic-gradient(from var(--neon-angle), transparent 0 62%, #a5f3ff 78%, #4fd6f5 88%, transparent 100%); }
@keyframes neon-run { to { --neon-angle: 360deg; } }

/* 送信ボタン：押すと丸くなってくるくる回り、届いたらチェック（ローディングボタン） */
.form-submit { transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1), padding 0.45s, background 0.3s, transform 0.2s; }
.form-submit.is-loading, .form-submit.is-done {
  width: 56px; min-width: 56px; padding: 0; margin-inline: auto; display: flex; color: transparent;
}
.form-submit.is-loading::before, .form-submit.is-done::before {
  content: ''; position: absolute; inset: 0; margin: auto; pointer-events: none;
}
.form-submit.is-loading::before {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid rgba(6, 39, 51, 0.25); border-top-color: #062733;
  animation: spin 0.7s linear infinite;
}
.form-submit.is-done { background: #2f9e44; box-shadow: 0 0 22px rgba(47, 158, 68, 0.5); }
.form-submit.is-done::before {
  width: 12px; height: 22px; margin-top: 12px; border: solid #ffffff; border-width: 0 3px 3px 0;
  transform: rotate(45deg); animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }

/* 入力欄：選ぶと見出しが光り、枠の光がふわっと広がる */
.form-label { transition: color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
.form-row:focus-within .form-label { color: var(--accent); transform: translateX(4px); }
.form-input:focus { animation: focus-glow 0.6s ease-out; }
@keyframes focus-glow {
  0% { box-shadow: 0 0 0 0 rgba(79, 214, 245, 0.55); }
  100% { box-shadow: 0 0 0 3px rgba(79, 214, 245, 0.15); }
}

/* AIスイッチ：つまみが伸び縮みして、ぷるんと移動（液体トグル） */
.switch-knob { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.2s; transform-origin: left center; }
.switch:active .switch-knob { transform: scaleX(1.4); }
.switch[aria-checked="true"] .switch-knob { transform-origin: right center; }
.switch[aria-checked="true"]:active .switch-knob { transform: translateX(28px) scaleX(1.4); }
.switch::before { transition: background 0.35s; }

/* 切り替えボタン：選んだところへハイライトがすべって移動（スライドハイライト） */
.seg, .mk-map-switch { position: relative; isolation: isolate; }
.seg-pill {
  position: absolute; left: 0; top: 0; z-index: -1; border-radius: 99px; background: var(--accent); pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.36, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.36, 0.64, 1), height 0.3s;
}
.mk-map-switch .seg-pill { background: #1971c2; }
.has-pill .seg-btn[aria-pressed="true"], .has-pill .mk-map-btn[aria-pressed="true"] { background: transparent; }
.has-pill .seg-btn, .has-pill .mk-map-btn { transition: color 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* チャット：返事の前に「入力中…」の点が弾む（ローディングドット） */
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typing 1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

/* チャット：しばらくすると「お気軽にどうぞ」の吹き出しがすべり出る（通知スライドイン） */
.chatbot-nudge {
  position: relative; display: flex; align-items: center; gap: 6px; max-width: 260px;
  padding: 12px 14px 12px 16px; border-radius: 16px 16px 4px 16px;
  background: #ffffff; color: #12303a; font-size: 0.88rem; font-weight: 700; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); cursor: pointer;
  animation: nudge-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.chatbot-nudge[hidden] { display: none; }
.chatbot-nudge-close {
  flex-shrink: 0; width: 44px; height: 44px; margin: -12px -14px -12px 0; border: none; background: none;
  font-size: 1.1rem; color: #8a99a3; cursor: pointer; border-radius: 50%;
}
.chatbot-nudge-wave { display: inline-block; animation: wave 1.6s ease-in-out 0.6s 2; transform-origin: 70% 70%; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(16px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(18deg); } 40%, 80% { transform: rotate(-10deg); } }

/* スマホのメニュー：開くと項目が上から順にすべり込む */
@media (max-width: 768px) {
  .nav .nav-list li, .nav .nav-cta { opacity: 0; transform: translateY(-10px); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .nav.is-open .nav-list li, .nav.is-open .nav-cta { opacity: 1; transform: none; }
  .nav.is-open .nav-list li:nth-child(2) { transition-delay: 0.05s; }
  .nav.is-open .nav-list li:nth-child(3) { transition-delay: 0.1s; }
  .nav.is-open .nav-list li:nth-child(4) { transition-delay: 0.15s; }
  .nav.is-open .nav-list li:nth-child(5) { transition-delay: 0.2s; }
  .nav.is-open .nav-cta { transition-delay: 0.27s; }
}

/* アイコンがぴょこっと跳ねる */
.tile:hover .tile-icon, .menu-card:hover .menu-card-icon, .feature-card:hover .feature-num { animation: hop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-8px) scale(1.08); } 65% { transform: translateY(1px) scale(0.97); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .btn-pamphlet:hover::before, .tile-btn-more:hover::before, .btn-outline:hover::before { animation: none; }
  .chatbot-nudge, .chatbot-nudge-wave, .chat-typing span { animation: none; }
  .tile:hover .tile-icon, .menu-card:hover .menu-card-icon, .feature-card:hover .feature-num { animation: none; }
}

/* お知らせの囲み（共通算定モジュール：WebORCAクラウド版の利用者向け） */
.notice-box {
  position: relative; background: #ffffff; border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: 16px; padding: 26px 28px; box-shadow: 0 12px 30px rgba(0, 51, 153, 0.08);
}
.notice-label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 800; color: var(--accent); letter-spacing: 0.04em; }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; background: #e8590c; box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5); animation: notice-pulse 1.8s ease-out infinite; }
@keyframes notice-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(232, 89, 12, 0); } }
.notice-title { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.6; margin: 8px 0 10px; }
.notice-text { color: var(--muted); line-height: 1.9; font-size: 0.95rem; }
.notice-list { list-style: none; display: grid; gap: 6px; margin: 14px 0 18px; }
.notice-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text); line-height: 1.7; }
.notice-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 600px) { .notice-box { padding: 22px 18px; } }
@media (prefers-reduced-motion: reduce) { .notice-dot { animation: none; } }

/* ==========================================================
   医療DXコラム（一覧・記事）
   ========================================================== */
.column-theme { --accent: #0b7285; --accent2: #15aabf; --rgb: 11, 114, 133; --hero: #e3f4f6; --bg-alt: #f1f9fa; --text: #15303a; --muted: #52666d; }
.column-theme .nav-link[aria-current="page"] { color: var(--accent); }

/* 記事 */
.article-container { max-width: 780px; }
.article-hero .detail-hero-inner { text-align: left; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.85rem; color: var(--muted); margin: 18px 0 12px; }
.article-cat {
  display: inline-block; font-size: 0.75rem; font-weight: 800; color: var(--accent);
  background: rgba(var(--rgb), 0.1); border-radius: 99px; padding: 3px 12px; white-space: nowrap;
}
.article-title { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.5; color: var(--text); }
.article-lead { margin-top: 18px; color: var(--muted); line-height: 2; }
.article { padding: 8px 0 72px; }
.article h2 {
  position: relative; font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 800; color: var(--text); line-height: 1.5;
  margin: 64px 0 18px; padding-left: 18px; scroll-margin-top: calc(var(--header-h) + 16px);
}
.article h2::before { content: ''; position: absolute; left: 0; top: 0.25em; bottom: 0.25em; width: 5px; border-radius: 3px; background: var(--grad); }
.article p { color: var(--text); line-height: 2.05; margin-bottom: 16px; }
.article strong { background: linear-gradient(transparent 62%, rgba(var(--rgb), 0.16) 62%); }
.art-summary { background: #ffffff; border: 2px solid var(--accent); border-radius: 18px; padding: 22px 26px; margin-top: 8px; }
.art-summary-title { font-weight: 800; color: var(--accent); margin-bottom: 8px !important; }
.art-summary ol { padding-left: 1.3em; display: grid; gap: 8px; }
.art-summary li { line-height: 1.85; color: var(--text); }
.art-toc { margin-top: 20px; background: var(--bg-alt); border-radius: 16px; padding: 18px 24px; }
.art-toc-title { font-weight: 800; margin-bottom: 6px !important; }
.art-toc ol { padding-left: 1.4em; display: grid; gap: 2px; }
.art-toc a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent); text-decoration: none; font-size: 0.93rem; }
.art-toc a:hover { text-decoration: underline; }
.art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 24px; }
.art-stat { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; text-align: center; }
.art-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.2; margin-bottom: 6px !important; }
.art-stat-num small { font-size: 1rem; margin-left: 2px; }
.art-stat-label { font-size: 0.8rem; color: var(--muted) !important; line-height: 1.6 !important; margin: 0 !important; }
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 20px; }
.art-card { position: relative; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 16px; }
.art-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
.art-card p { font-size: 0.9rem; line-height: 1.8; color: var(--muted); margin: 0; }
.art-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; color: #ffffff; background: var(--grad); border-radius: 99px; padding: 3px 12px; }
.art-note { border-radius: 14px; padding: 16px 20px; line-height: 1.9; margin: 18px 0 20px; font-size: 0.95rem; }
.art-note.is-info { background: rgba(var(--rgb), 0.07); border: 1px solid rgba(var(--rgb), 0.25); color: var(--text); }
.art-note.is-warn { background: #fff4e6; border: 1px solid #ffc078; color: #5c3b12; }
.art-note a { color: var(--accent); font-weight: 700; margin-left: 4px; }
.art-table-scroll { overflow-x: auto; margin: 18px 0 18px; border-radius: 14px; border: 1px solid var(--border); }
.art-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #ffffff; font-size: 0.92rem; }
.art-table th, .art-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); line-height: 1.6; }
.art-table thead th { background: var(--bg-alt); font-size: 0.82rem; color: var(--muted); }
.art-table.is-fit { min-width: 0; }
.art-table.is-fit th:first-child, .art-table.is-fit td:first-child { white-space: nowrap; }
@media (max-width: 480px) { .art-table.is-fit th, .art-table.is-fit td { padding: 11px 10px; } }
.art-table tr:last-child td { border-bottom: none; }
.art-table tr.is-focus td { background: rgba(var(--rgb), 0.07); font-weight: 700; }
.art-timeline { list-style: none; position: relative; margin: 20px 0 22px; padding-left: 26px; }
.art-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(var(--rgb), 0.25); }
.art-timeline li { position: relative; padding: 8px 0 12px; color: var(--text); line-height: 1.7; }
.art-timeline li::before {
  content: ''; position: absolute; left: -26px; top: 13px; width: 16px; height: 16px; border-radius: 50%;
  background: #ffffff; border: 3px solid rgba(var(--rgb), 0.5);
}
.art-timeline .when { display: block; font-size: 0.82rem; font-weight: 800; color: var(--accent); }
.art-timeline li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 0 rgba(var(--rgb), 0.5); animation: now-pulse 1.8s ease-out infinite; }
.art-timeline li.is-now .when::after { content: 'いまここ'; margin-left: 8px; font-size: 0.7rem; color: #ffffff; background: #e8590c; border-radius: 99px; padding: 1px 8px; }
.art-timeline li.is-goal::before { background: var(--grad); border-color: transparent; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--rgb), 0.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--rgb), 0); } }
.article-container > ol, .article-container > ul:not(.art-check) { padding-left: 1.5em; margin: 14px 0 20px; line-height: 1.8; }
.article-container > ol li, .article-container > ul:not(.art-check) li { margin-bottom: 6px; }

.art-check { list-style: none; display: grid; gap: 8px; margin: 16px 0 20px; }
.art-check li { position: relative; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 12px 46px; line-height: 1.7; color: var(--text); }
.art-check li::before {
  content: '✓'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
  color: #ffffff; background: var(--grad);
}
.article .faq-list { margin: 16px 0 8px; }
.article .faq-q, .article .faq-a { margin: 0; }
.art-cta { margin-top: 56px; background: linear-gradient(135deg, var(--hero) 0%, #ffffff 100%); border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px; text-align: center; }
.art-cta-title { font-size: 1.25rem; font-weight: 800; color: var(--text) !important; }
.art-cta p { color: var(--muted); text-align: left; }
.art-cta .hero-actions { justify-content: center; }
.art-related { margin-top: 48px; }
.art-related-title, .art-sources-title { font-weight: 800; color: var(--text); margin-bottom: 12px !important; }
.art-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.art-sources ul { padding-left: 1.2em; display: grid; gap: 6px; }
.art-sources a { color: var(--accent); font-size: 0.88rem; line-height: 1.7; }
.art-sources-note { font-size: 0.82rem; color: var(--muted) !important; margin-top: 12px; }

/* コラム一覧 */
.column-filter { display: flex; justify-content: center; margin-bottom: 28px; }
.column-filter .seg { flex-wrap: wrap; justify-content: center; border-radius: 26px; }
.column-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; gap: 22px; }
.column-card {
  position: relative; display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s;
}
.column-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(var(--rgb), 0.15); }
.column-card[hidden] { display: none; }
.column-card-visual {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, #0b7285 0%, #15aabf 55%, #66d9e8 100%); color: #ffffff; overflow: hidden;
}
.column-card-visual::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 50%); }
.column-card-big { position: relative; z-index: 1; font-size: 1.7rem; font-weight: 800; line-height: 1.35; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.column-card-big span { font-size: 1.1rem; margin-left: 4px; }
.column-card:hover .column-card-big { transform: scale(1.06); }
.column-card-badge { position: absolute; z-index: 1; top: 12px; left: 12px; font-size: 0.72rem; font-weight: 800; color: #0b7285; background: #ffffff; border-radius: 99px; padding: 3px 10px; }
.column-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.column-card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.column-card-title { font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.6; }
.column-card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.8; margin: 8px 0 10px; }
.column-card .related-more { margin-top: auto; }
.column-empty { text-align: center; color: var(--muted); padding: 32px 0 8px; }
.column-upcoming { list-style: none; display: grid; gap: 10px; }
.column-upcoming li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #ffffff; border: 1px dashed rgba(var(--rgb), 0.35); border-radius: 14px; padding: 14px 18px; color: var(--text); line-height: 1.7; }
.column-ask { margin-top: 26px; text-align: center; }
.column-ask p { color: var(--muted); margin-bottom: 12px; }

@media (max-width: 700px) {
  .art-stats, .art-grid { grid-template-columns: 1fr; }
  .art-summary { padding: 18px 18px; }
  .art-cta { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-timeline li.is-now::before { animation: none; }
}

/* お知らせのリンク・コラムへの誘導帯 */
.news-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(79, 214, 245, 0.5); text-underline-offset: 4px; }
.news-link:hover { color: var(--accent); }
.column-banner {
  display: grid; gap: 6px; text-decoration: none; color: #ffffff; border-radius: 20px; padding: 24px 28px;
  background: linear-gradient(135deg, #0b7285 0%, #15aabf 100%); box-shadow: 0 16px 36px rgba(11, 114, 133, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.column-banner:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11, 114, 133, 0.32); }
.column-banner-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; opacity: 0.85; }
.column-banner-title { font-size: 1.08rem; font-weight: 800; line-height: 1.7; }
.column-banner-more { font-size: 0.9rem; font-weight: 700; }

/* ==========================================================
   WebORCA ハイブリッドサービス（weborca-theme ＋ hybrid-theme）
   ========================================================== */
.hybrid-theme { --rgb: 3, 169, 244; --warn: #e8590c; }
.hy-demo { background: #ffffff; border: 1px solid var(--border); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 16px 36px rgba(3, 105, 160, 0.08); }
.hy-switch-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 20px; }
.hy-switch-row { display: flex; align-items: center; gap: 10px; }
.hy-switch-label { font-size: 0.78rem; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* 構成図：上段＝本番環境、下段＝緊急時用環境、間にリストア／復元 */
.hy-demo { --c-onprem: #1c7ed6; --c-cloud: #0ca678; --c-em: #6741d9; --c-restore: #e03131; --c-back: #1971c2; }
.hy-row-label { display: flex; align-items: baseline; gap: 10px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.hy-row-label span { font-size: 0.76rem; color: var(--muted); font-weight: 700; }
.hy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hy-zone {
  --zc: var(--c-onprem); position: relative; border: 2px solid color-mix(in srgb, var(--zc) 35%, #ffffff); border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--zc) 6%, #ffffff); transition: border-color 0.35s, opacity 0.35s, filter 0.35s, box-shadow 0.35s, transform 0.35s;
}
.hy-cloud { --zc: var(--c-cloud); }
.hy-em { --zc: var(--c-em); }
.hy-zone-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: #ffffff; font-size: 0.82rem; font-weight: 800; background: var(--zc); }
.hy-zone-ico { font-size: 1rem; }
.hy-zone-body { padding: 12px 14px 14px; }
.hy-box-title { font-weight: 800; line-height: 1.5; color: color-mix(in srgb, var(--zc) 80%, #000000); }
.hy-box-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.hy-state { margin-top: 10px; font-size: 0.78rem; font-weight: 800; }
.hy-state span { display: inline-block; border-radius: 99px; padding: 2px 10px; color: #868e96; background: #f1f3f5; }
.hy-here {
  display: none; margin-top: 8px; width: fit-content; font-size: 0.76rem; font-weight: 800; color: #ffffff; background: var(--zc);
  border-radius: 99px; padding: 3px 12px; box-shadow: 0 4px 12px color-mix(in srgb, var(--zc) 35%, transparent);
}

.hy-band { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 0; }
.hy-lane {
  --lc: var(--c-restore); position: relative; display: flex; align-items: center; gap: 10px; min-height: 92px; padding-left: 26px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted); line-height: 1.5; opacity: 0.45; transition: opacity 0.35s;
}
.hy-lane-back { --lc: var(--c-back); justify-self: end; }
.hy-lane::before {
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(180deg, var(--lc) 0 8px, transparent 8px 14px);
}
.hy-lane::after { content: ""; position: absolute; left: 3px; border: 6.5px solid transparent; }
.hy-lane-restore::after { bottom: -6px; border-top: 9px solid var(--c-restore); border-bottom: 0; }
.hy-lane-back::after { top: -6px; border-bottom: 9px solid var(--c-back); border-top: 0; }
.hy-pill { flex-shrink: 0; color: #ffffff; background: var(--lc); border-radius: 99px; padding: 3px 12px; font-weight: 800; }
.hy-backup {
  text-align: center; font-size: 0.82rem; font-weight: 800; color: var(--text); border: 2px dashed #adb5bd; border-radius: 12px; padding: 8px 14px; background: #ffffff;
}
.hy-backup span { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.hy-row-label-em { margin-top: 2px; }

.hy-caption { margin-top: 18px; background: var(--bg-alt); border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; color: var(--text); line-height: 1.85; }
.hy-foot { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-top: 14px; }
.hy-notes { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: #f8f9fa; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.hy-notes-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #ffffff; background: var(--c-back); font-weight: 900; }
.hy-notes ul { list-style: none; display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); line-height: 1.75; }
.hy-notes li::before { content: "※ "; }
.hy-legend { list-style: none; display: grid; grid-template-columns: 1fr; gap: 6px 10px; align-content: start; font-size: 0.76rem; color: var(--muted); font-weight: 700; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.hy-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lg { flex-shrink: 0; width: 22px; height: 14px; border-radius: 4px; }
.lg-onprem { background: color-mix(in srgb, var(--c-onprem) 22%, #ffffff); border: 2px solid var(--c-onprem); }
.lg-cloud { background: color-mix(in srgb, var(--c-cloud) 22%, #ffffff); border: 2px solid var(--c-cloud); }
.lg-em { background: color-mix(in srgb, var(--c-em) 22%, #ffffff); border: 2px solid var(--c-em); }
.lg-restore, .lg-back { height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--c-restore) 0 5px, transparent 5px 8px); }
.lg-back { background: repeating-linear-gradient(90deg, var(--c-back) 0 5px, transparent 5px 8px); }
.lg-backup { border: 2px dashed #adb5bd; }

/* 場面ごとの表示切り替え */
.hy-demo [data-show] { display: none; }
.hy-demo[data-mode="normal"] [data-show="normal"],
.hy-demo[data-mode="emergency"] [data-show="emergency"],
.hy-demo[data-mode="recovery"] [data-show="recovery"] { display: inline; animation: hy-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hy-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* お使いでない本番環境はうすく */
.hy-demo[data-env="cloud"] .hy-onprem,
.hy-demo[data-env="onprem"] .hy-cloud { opacity: 0.38; filter: grayscale(0.7); }
.hy-demo[data-env="cloud"] .hy-onprem .hy-state,
.hy-demo[data-env="onprem"] .hy-cloud .hy-state { visibility: hidden; }

/* いつも／復旧したら：本番につなぐ */
.hy-demo:is([data-mode="normal"], [data-mode="recovery"])[data-env="cloud"] .hy-cloud,
.hy-demo:is([data-mode="normal"], [data-mode="recovery"])[data-env="onprem"] .hy-onprem { border-color: var(--zc); box-shadow: 0 10px 24px color-mix(in srgb, var(--zc) 22%, transparent); }
.hy-demo:is([data-mode="normal"], [data-mode="recovery"])[data-env="cloud"] .hy-cloud .hy-here,
.hy-demo:is([data-mode="normal"], [data-mode="recovery"])[data-env="onprem"] .hy-onprem .hy-here { display: block; animation: hy-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hy-demo:is([data-mode="normal"], [data-mode="recovery"]) .hy-prod .hy-state span { color: #2b8a3e; background: #ebfbee; }

/* 障害のとき：本番が止まり、緊急時用へ切り替える */
.hy-demo[data-mode="emergency"][data-env="cloud"] .hy-cloud,
.hy-demo[data-mode="emergency"][data-env="onprem"] .hy-onprem { border-color: var(--warn); }
.hy-demo[data-mode="emergency"] .hy-prod .hy-state span { color: #ffffff; background: var(--warn); animation: hy-blink 1.2s ease-in-out infinite; }
.hy-demo[data-mode="emergency"] .hy-em { border-color: var(--zc); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--zc) 25%, transparent); }
.hy-demo[data-mode="emergency"] .hy-em .hy-state span { color: #ffffff; background: var(--zc); }
.hy-demo[data-mode="emergency"] .hy-em .hy-here { display: block; animation: hy-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hy-demo[data-mode="recovery"] .hy-em .hy-state span { color: var(--c-back); background: #e7f5ff; }

/* 矢印：いつも・障害のときはリストア、復旧したら復元が流れる */
.hy-demo:is([data-mode="normal"], [data-mode="emergency"]) .hy-lane-restore,
.hy-demo[data-mode="recovery"] .hy-lane-back { opacity: 1; color: var(--text); }
.hy-demo:is([data-mode="normal"], [data-mode="emergency"]) .hy-lane-restore::before { animation: hy-flow-down 0.9s linear infinite; }
.hy-demo[data-mode="recovery"] .hy-lane-back::before { animation: hy-flow-up 0.9s linear infinite; }
@keyframes hy-flow-down { to { background-position: 0 14px; } }
@keyframes hy-flow-up { to { background-position: 0 -14px; } }
@keyframes hy-blink { 50% { opacity: 0.55; } }

/* 知っておきたいこと */
.hy-points { display: grid; gap: 14px; }
.hy-point { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.hy-point-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #ffffff; background: var(--grad); }
.hy-point-title { font-weight: 800; color: var(--text); margin-bottom: 4px; line-height: 1.5; }
.hy-point-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.85; }
.hy-advice { margin-top: 18px; background: #fff9db; border: 1px solid #ffe066; border-radius: 14px; padding: 14px 18px; color: #5c4a00; line-height: 1.8; }

/* WebORCAページからの誘導 */
.hy-banner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, #fff4e6 0%, #ffffff 70%); border: 1px solid #ffc078; border-radius: 20px; padding: 22px 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.hy-banner:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(232, 89, 12, 0.15); }
.hy-banner-icon { font-size: 2rem; }
.hy-banner-label { font-size: 0.75rem; font-weight: 800; color: #e8590c; letter-spacing: 0.06em; }
.hy-banner-title { font-weight: 800; line-height: 1.6; }
.hy-banner-more { font-weight: 800; color: var(--accent); white-space: nowrap; }

@media (max-width: 760px) {
  .hy-switch-wrap .seg-btn { padding: 0 12px; font-size: 0.84rem; white-space: nowrap; }
  .hy-demo { padding: 18px 14px 14px; }
  .hy-switch-row { flex-direction: column; gap: 4px; }
  .hy-row { gap: 10px; }
  .hy-zone-head { padding: 7px 10px; font-size: 0.74rem; }
  .hy-zone-body { padding: 10px; }
  .hy-zone .hy-box-sub { font-size: 0.74rem; }
  .hy-band { grid-template-columns: 1fr 1fr; }
  .hy-backup { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .hy-lane { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 4px 0 4px 22px; font-size: 0.74rem; }
  .hy-lane-back { justify-self: start; }
  .hy-here { font-size: 0.72rem; padding: 3px 10px; white-space: nowrap; }
  .hy-demo[data-env="cloud"] .hy-onprem,
  .hy-demo[data-env="onprem"] .hy-cloud { display: none; }
  .hy-demo .hy-prod { grid-column: 1 / -1; }
  .hy-foot { grid-template-columns: 1fr; }
  .hy-legend { grid-template-columns: 1fr 1fr; }
  .hy-legend li { white-space: normal; }
  .hy-banner { grid-template-columns: 1fr; text-align: left; }
  .hy-banner-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hy-demo [data-show], .hy-demo .hy-state span, .hy-demo .hy-here, .hy-lane::before { animation: none !important; }
}
.column-card-visual.is-orange { background: linear-gradient(135deg, #d9480f 0%, #f76707 55%, #ffa94d 100%); }
.column-card-visual.is-green { background: linear-gradient(135deg, #087f5b 0%, #12b886 55%, #63e6be 100%); }

/* コラム内のサンプル配布ボックス */
.art-download { margin-top: 8px; margin-bottom: 28px; padding: 26px 26px 22px; border-radius: 20px; background: linear-gradient(135deg, #e6fcf5 0%, #ffffff 100%); border: 2px solid #12b886; text-align: center; }
.art-download-title { font-size: 1.15rem; font-weight: 800; color: var(--text) !important; margin-bottom: 10px !important; }
.art-download-list { list-style: none; padding: 0; margin: 0 auto 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.art-download-list li { background: #ffffff; border: 1px solid #c3fae8; border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--text); }
.art-download .btn { min-height: 48px; }
.art-download-note { margin-top: 12px !important; font-size: 0.86rem; color: var(--muted) !important; }

/* コラム内の連絡体制図（記入例） */
.column-card-visual.is-indigo { background: linear-gradient(135deg, #364fc7 0%, #4c6ef5 55%, #91a7ff 100%); }
.column-card-visual.is-teal { background: linear-gradient(135deg, #0b7285 0%, #15aabf 55%, #66d9e8 100%); }
.column-card-visual.is-violet { background: linear-gradient(135deg, #5f3dc4 0%, #7950f2 55%, #b197fc 100%); }
.column-card-visual.is-pink { background: linear-gradient(135deg, #a61e4d 0%, #e64980 55%, #faa2c1 100%); }
.column-card-visual.is-slate { background: linear-gradient(135deg, #1f2f46 0%, #3e5c76 55%, #8fa9c4 100%); }
.rt-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; margin: 18px 0 22px; padding: 20px; border-radius: 18px; background: #f8f9fc; border: 1px solid var(--border); }
.rt-col { display: grid; gap: 10px; }
.rt-head { margin: 0 !important; padding: 8px 12px; border-radius: 10px; background: #e7ecf7; font-weight: 800; font-size: 0.92rem; text-align: center; color: var(--text) !important; }
.rt-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 2px solid #4c6ef5; background: #edf2ff; }
.rt-box.is-out { border-color: #f08c00; background: #fff4e6; }
.rt-box strong { font-size: 0.95rem; color: var(--text); background: none; padding: 0; }
.rt-box span { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.rt-arrow { margin: 0 !important; text-align: center; font-size: 1.4rem; font-weight: 800; color: #4c6ef5 !important; line-height: 1; }
.rt-arrow.is-side { align-self: center; color: #e8590c !important; font-size: 1.8rem; }
@media (max-width: 768px) {
  .rt-flow { grid-template-columns: 1fr; padding: 16px; }
  .rt-arrow.is-side { transform: rotate(90deg); }
}

/* 自社プロダクトが奇数のとき、最後の 1 枚を中央に置く */
#products .tile-grid > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: min(100%, calc((100% - 20px) / 2)); }
@media (max-width: 768px) {
  #products .tile-grid > .tile:last-child:nth-child(odd) { width: 100%; }
}

/* ==========================================================
   患者属性連携プログラム（ptlink-theme）
   ========================================================== */
.pl-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.pl-badges li { font-size: 0.8rem; font-weight: 700; color: var(--accent); background: #ffffff; border: 1px solid var(--border); border-radius: 99px; padding: 5px 14px; }

.pl-env { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pl-env-card { background: #ffffff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 20px; }
.pl-env-tag { display: inline-block; font-size: 0.74rem; font-weight: 800; color: #ffffff; background: var(--accent); border-radius: 99px; padding: 2px 12px; }
.pl-env-card:nth-child(2) .pl-env-tag { background: var(--accent2); }
.pl-env-title { font-weight: 800; color: var(--text); line-height: 1.5; margin: 10px 0 6px; }
.pl-env-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.85; }
.pl-env-list { list-style: none; margin-top: 10px; display: grid; gap: 4px; }
.pl-env-list li { position: relative; padding-left: 22px; font-size: 0.86rem; color: var(--text); }
.pl-env-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.pl-sample { margin: 0; background: #ffffff; border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: 0 16px 36px rgba(59, 91, 219, 0.08); }
.pl-sample-switch { display: flex; justify-content: center; margin-bottom: 16px; }
.pl-sample-panel { display: none; }
.pl-sample[data-show-sample="csv"] [data-sample-panel="csv"],
.pl-sample[data-show-sample="half"] [data-sample-panel="half"],
.pl-sample[data-show-sample="xml"] [data-sample-panel="xml"] { display: block; animation: hy-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pl-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pl-file span { font-family: inherit; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.pl-code {
  margin: 0; overflow-x: auto; background: #151b33; color: #e6ebff; border-radius: 14px; padding: 16px 18px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.75; white-space: pre;
}
.pl-sample-note { margin-top: 10px; font-size: 0.84rem; color: var(--muted); line-height: 1.75; }
.pl-h3 { text-align: center; font-weight: 800; color: var(--text); margin: 34px 0 12px; }
.pl-fields { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pl-fields span { font-size: 0.86rem; font-weight: 700; color: var(--text); background: var(--accent-soft); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; }

.pl-connect { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pl-connect-item { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: 0.9rem; color: var(--text); line-height: 1.5; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 12px; }
.pl-connect-item span { font-size: 1.8rem; line-height: 1; }

@media (max-width: 900px) {
  .pl-connect { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .pl-env { grid-template-columns: 1fr; }
  .pl-connect { grid-template-columns: 1fr 1fr; }
  .pl-sample { padding: 16px 12px; }
  .pl-sample-switch .seg-btn { padding: 0 12px; font-size: 0.82rem; white-space: nowrap; }
  .pl-code { font-size: 0.78rem; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-sample-panel { animation: none !important; }
}

/* ==========================================================
   読みやすさの調整（2026-10）
   ・文字の基準を大きく（Apple／layered を参考に、本文は17〜18px相当）
   ・カードの枠はマウスを乗せても動かさない（縁が光るだけ）
   ・ボタンは「縁が光る」＋「押すと潰れて弾む（バウンスCTA）」
   ========================================================== */
html { font-size: 112.5%; }
@media (max-width: 768px) { html { font-size: 106.25%; } }

/* 見出しは大きく、行間は詰めて「ひと目で読める」形に */
.hero-title { font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.25; }
.section-title { font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.35; letter-spacing: 0.01em; }
.detail-title { font-size: clamp(1.9rem, 5.2vw, 3.2rem); line-height: 1.3; }
.detail-h2 { font-size: clamp(1.55rem, 3.8vw, 2.4rem); line-height: 1.4; }
.tile-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.4; }
.cta-title { font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.4; }
.feature-title, .menu-card-title, .showcase-title { line-height: 1.45; }
.hero-lead, .detail-lead, .section-lead, .prose, .cta-lead { line-height: 1.85; }
.nav-link { font-size: 0.9rem; padding: 0 12px; }
@media (max-width: 1100px) and (min-width: 769px) { .nav-link { padding: 0 8px; font-size: 0.85rem; } .nav { gap: 16px; } }

/* カードの枠は動かさない */
:root :is(.tile, .feature-card, .menu-card, .product-card, .kaigo-card, .related-card, .column-card, .column-banner, .hy-banner, .price-card, .plan-one, .ai-option, .promise, .art-card, .hy-point, .flow-node, .showcase-row, .mock):hover {
  transform: none !important;
}
:root .tile:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.column-card:hover .column-card-big { transform: none; }

/* ボタン：平らな形に戻し、マウスを乗せると縁が光る（発光ネオン）。動かさない */
:root .btn.btn:hover, :root .tile-btn.tile-btn:hover, :root .quick-btn.quick-btn:hover { transform: none; }
.btn, .tile-btn { overflow: visible; }
.btn::before, .tile-btn::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--neon-angle), transparent 0 58%, #a5f3ff 74%, var(--accent, #4fd6f5) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before, .tile-btn:hover::before { opacity: 1; animation: neon-run 1.6s linear infinite; }
.btn:hover, .tile-btn:hover { filter: drop-shadow(0 0 10px rgba(79, 214, 245, 0.45)); }
.btn:active, .tile-btn:active { filter: drop-shadow(0 0 18px rgba(79, 214, 245, 0.8)); }
.weborca-theme .btn:hover, .weborca-theme .tile-btn:hover { filter: drop-shadow(0 0 10px rgba(var(--rgb, 3, 169, 244), 0.35)); }
/* 波紋はボタンの中だけに表示する */
.btn .ripple, .tile-btn .ripple { display: none; }

/* 押すと横に潰れ、離すと縦に伸びて跳ね、揺れながら戻る */
:root .btn.btn.is-squash, :root .tile-btn.tile-btn.is-squash, :root .btn.btn.is-squash:hover, :root .tile-btn.tile-btn.is-squash:hover,
:root :is(.seg-btn, .mk-map-btn, .quick-btn, .chatbot-toggle, .chatbot-send, .message-avatar).is-squash,
:root :is(.seg-btn, .mk-map-btn, .quick-btn, .chatbot-toggle, .chatbot-send, .message-avatar).is-squash:hover { transform: scale(1.12, 0.78); transition: transform 0.08s ease-out; }
:root .btn.is-bounce, :root .tile-btn.is-bounce,
:root :is(.seg-btn, .mk-map-btn, .quick-btn, .chatbot-toggle, .chatbot-send, .message-avatar).is-bounce { animation: cta-bounce 0.62s cubic-bezier(0.3, 0.7, 0.4, 1); }
@keyframes cta-bounce {
  0%   { transform: scale(1.1, 0.8); }
  28%  { transform: translateY(-14px) scale(0.9, 1.12); }
  48%  { transform: translateY(0) scale(1.07, 0.92); }
  64%  { transform: translateY(-3px) scale(0.97, 1.03); }
  80%  { transform: translateY(0) scale(1.02, 0.98); }
  100% { transform: none; }
}

/* 着地で弾ける紙吹雪 */
.confetti { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; }
.confetti span {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px;
  animation: confetti-fly 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.confetti span:nth-child(3n) { border-radius: 50%; }
@keyframes confetti-fly {
  0% { transform: translate(0, 0) rotate(0) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 18px)) rotate(var(--rot)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::before, .tile-btn:hover::before { animation: none; }
}

/* 介護DX：5つのしくみ（役割ごとの色分けと、つながりの図） */
.kaigo-card-tag.is-claim { color: #2b8a3e; background: rgba(43, 138, 62, 0.1); }
.kaigo-card-tag.is-share { color: #0c8599; background: rgba(12, 133, 153, 0.1); }
.kaigo-card-tag.is-check { color: #d9480f; background: rgba(217, 72, 15, 0.1); }
.kaigo-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.kaigo-flow { margin-top: 36px; background: #ffffff; border: 1px solid var(--border); border-radius: 20px; padding: 24px 24px 20px; }
.kaigo-flow-title { text-align: center; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.kaigo-flow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kaigo-flow-steps li { position: relative; border-radius: 14px; padding: 16px 14px 14px; background: #f8f9fa; border-top: 4px solid #2b8a3e; }
.kaigo-flow-steps li.is-share { border-top-color: #0c8599; }
.kaigo-flow-steps li.is-check { border-top-color: #d9480f; }
.kaigo-flow-steps li:not(:last-child)::after {
  content: '→'; position: absolute; right: -6px; top: 50%; transform: translate(50%, -50%); z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  color: #ffffff; background: var(--accent);
}
.kaigo-flow-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; color: #ffffff; background: #2b8a3e; }
.is-share .kaigo-flow-num { background: #0c8599; }
.is-check .kaigo-flow-num { background: #d9480f; }
.kaigo-flow-name { font-weight: 800; color: var(--text); line-height: 1.5; margin: 8px 0 4px; font-size: 0.95rem; }
.kaigo-flow-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 1000px) {
  .kaigo-flow-steps { grid-template-columns: 1fr; gap: 14px; }
  .kaigo-flow-steps li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -11px; transform: translate(50%, 50%); }
}
@media (min-width: 901px) {
  .kaigo-systems { grid-template-columns: repeat(6, 1fr); }
  .kaigo-systems > .kaigo-card { grid-column: span 2; }
  .kaigo-systems > .kaigo-card:nth-child(4) { grid-column: 2 / span 2; }
}

/* コラム内の図（img/column。scripts/make-column-figs.py で作る） */
.art-figure { margin: 18px 0 26px; }
.art-figure a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(13, 59, 120, 0.08); transition: transform 0.25s, box-shadow 0.25s; }
.art-figure a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 59, 120, 0.14); }
.art-figure img { display: block; width: 100%; height: auto; }
.art-figure figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); text-align: center; }
@media (min-width: 768px) { .art-figure figcaption { display: none; } }
@media (prefers-reduced-motion: reduce) { .art-figure a { transition: none; } .art-figure a:hover { transform: none; } }
