<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>会員カルテUIサンプル (脳波測定対応)</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Font: Inter -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f3f4f6; /* gray-100 */
}
/* スクロールバーのスタイル */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
background-color: #9ca3af; /* gray-400 */
border-radius: 3px;
}
::-webkit-scrollbar-track {
background-color: #f3f4f6; /* gray-100 */
}
</style>
</head>
<body class="p-8">
<div class="max-w-7xl mx-auto space-y-6">
<!-- ページヘッダー (ダミー) -->
<div class="flex justify-between items-center mb-6">
<h1 class="text-2xl font-semibold text-gray-800">顧客・カルテ管理 (脳波測定対応)</h1>
<div class="flex space-x-2">
<input type="text" placeholder="顧客名、電話番号、会員ID..." class="px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-emerald-500 w-64">
<button class="bg-white border border-gray-300 text-gray-700 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-50">
検索
</button>
</div>
</div>
<!-- 電子カルテの詳細UI -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<!-- カルテヘッダー: 患者基本情報 -->
<div class="bg-gray-50 p-4 border-b border-gray-200">
<div class="flex justify-between items-start">
<div>
<h2 class="text-2xl font-bold text-gray-900">田中 様 (ID: C00123)</h2>
<p class="text-base text-gray-600 mt-1">タナカ サマ | 35歳 (1990/05/01) | 女性 | 主担当: 佐藤</p>
</div>
<!-- アレルギー・既往歴エリア -->
<div class="flex-shrink-0 ml-4">
<div class="bg-red-100 border border-red-300 text-red-800 text-sm p-3 rounded-lg shadow-sm">
<h3 class="font-bold mb-1">重要情報</h3>
<p><strong>アレルギー:</strong> 特になし</p>
<p><strong>既往歴:</strong> (情報なし)</p>
</div>
</div>
</div>
</div>
<!-- カルテ本体 (2カラムレイアウト) -->
<!-- 高さを増やしてグラフ表示に対応 -->
<div class="flex" style="height: 800px;">
<!-- 左: 履歴一覧 -->
<div class="w-1/3 xl:w-1/4 bg-gray-50 border-r border-gray-200 overflow-y-auto">
<div class="p-3 border-b border-gray-200 sticky top-0 bg-gray-50">
<h3 class="text-sm font-semibold text-gray-700 uppercase">カウンセリング履歴</h3>
</div>
<nav class="flex-1">
<!-- 選択中の履歴 -->
<a href="#" class="block p-4 border-b border-gray-200 bg-emerald-50 border-l-4 border-emerald-500">
<p class="font-semibold text-sm text-emerald-800">2025年11月15日 (本日)</p>
<p class="text-xs text-gray-600">担当: 佐藤</p>
</a>
<a href="#" class="block p-4 border-b border-gray-200 hover:bg-gray-100">
<p class="font-semibold text-sm text-gray-900">2025年11月01日</p>
<p class="text-xs text-gray-600">担当: 佐藤</p>
</a>
<a href="#" class="block p-4 border-b border-gray-200 hover:bg-gray-100">
<p class="font-semibold text-sm text-gray-900">2025年10月15日</p>
<p class="text-xs text-gray-600">担当: 佐藤</p>
</a>
<a href="#" class="block p-4 border-b border-gray-200 hover:bg-gray-100">
<p class="font-semibold text-sm text-gray-900">2025年10月01日 (初回)</p>
<p class="text-xs text-gray-600">担当: 高橋</p>
</a>
</nav>
</div>
<!-- 右: 脳波グラフ & 記録エリア -->
<div class="w-2/3 xl:w-3/4 p-6 overflow-y-auto space-y-5">
<!-- 上段: 脳波グラフ比較エリア -->
<div>
<h3 class="text-xl font-semibold text-gray-800 mb-4">脳波測定グラフ (15分間)</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- 前回のグラフ -->
<div>
<h4 class="text-base font-semibold text-gray-700">前回 (2025年11月01日)</h4>
<div class="mt-2 border border-gray-200 rounded-lg p-2 bg-gray-50">
<img src="https://placehold.co/400x200/e2e8f0/64748b?text=EEG+Graph+(Previous)" alt="前回の脳波グラフ" class="w-full h-48 object-cover rounded-md">
<p class="text-sm mt-2 text-gray-600"><strong>サマリー:</strong> β波が優位で、リラックス状態を示すα波は少ない。</p>
</div>
</div>
<!-- 今回のグラフ -->
<div>
<h4 class="text-base font-semibold text-gray-700">今回 (2025年11月15日)</h4>
<div class="mt-2 border border-blue-300 rounded-lg p-2 bg-blue-50 ring-2 ring-blue-200">
<img src="https://placehold.co/400x200/dbeafe/1e3a8a?text=EEG+Graph+(Current)" alt="今回の脳波グラフ" class="w-full h-48 object-cover rounded-md">
<p class="text-sm mt-2 text-gray-800"><strong>サマリー:</strong> α波の出現が顕著に増加。β波が減少し、リラックス状態へ移行。</p>
</div>
</div>
</div>
</div>
<!-- 罫線 -->
<div class="border-b border-gray-200 pt-4"></div>
<!-- 下段: カウンセリング記録フォーム -->
<div>
<h3 class="text-xl font-semibold text-gray-800 mb-4">カウンセリング記録</h3>
<div>
<label for="record-assessment" class="block text-sm font-medium text-emerald-700">グラフ所見・前回との比較 (Assessment)</label>
<textarea id="record-assessment" rows="4" class="mt-1 block w-full border border-gray-300 rounded-lg p-2 text-sm focus:ring-emerald-500 focus:border-emerald-500" placeholder="・前回と比較し、α波の出現率が大幅に改善。
・セッション後半にかけて、より安定したリラックス状態(α波)が見られた。
・クライエント自身も「リラックスできた」との実感とグラフが一致している。"></textarea>
</div>
<div class="mt-4">
<label for="record-subjective" class="block text-sm font-medium text-emerald-700">ヒアリング内容・最近の気になること (Subjective / Objective)</label>
<textarea id="record-subjective" rows="5" class="mt-1 block w-full border border-gray-300 rounded-lg p-2 text-sm focus:ring-emerald-500 focus:border-emerald-500" placeholder="・「最近の気になること」として、睡眠の質が改善傾向にあるとの発言。
・(S)「以前より途中で起きることが減った気がする」
・(O)表情は前回より柔らかく、口数も増えている。
・職場でのストレス要因は変わらないが、対処法(前回指導した呼吸法)を実践できているとのこと。"></textarea>
</div>
<div class="mt-4">
<label for="record-plan" class="block text-sm font-medium text-emerald-700">今後のプラン (Plan)</label>
<textarea id="record-plan" rows="3" class="mt-1 block w-full border border-gray-300 rounded-lg p-2 text-sm focus:ring-emerald-500 focus:border-emerald-500" placeholder="・引き続き、呼吸法の実践を推奨。
・次回は、ストレス要因そのものへの認知の歪み(認知行動療法)について、簡易的なアプローチを試みる。
・次回の脳波測定で、リラックス状態への移行速度をチェックする。"></textarea>
</div>
<div class="text-right pt-6">
<button class="bg-gray-100 text-gray-700 px-5 py-2 rounded-lg text-sm font-medium hover:bg-gray-200">
一時保存
</button>
<button class="bg-emerald-600 text-white px-5 py-2 rounded-lg text-sm font-medium hover:bg-emerald-700 ml-2">
カルテを確定する
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>