以下は、ユーザーのリクエストに対する応答です。以前の応答で提供した基本的なウェブページを基に、より洗練されたバージョンを作成しました。主な改善点は以下の通りです:
html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>神経筋疾患の鑑別学習</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f0f8ff;
color: #333;
}
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.animation-box {
border: 2px solid #4CAF50;
padding: 20px;
border-radius: 10px;
background-color: #fff;
text-align: center;
}
.animation-box h2 {
color: #4CAF50;
}
/* アニメーションスタイル */
#gbs-animation {
height: 200px;
background: linear-gradient(to right, #ffeb3b, #fff);
position: relative;
overflow: hidden;
}
#mg-animation {
height: 200px;
background: linear-gradient(to right, #ffcdd2, #fff);
position: relative;
overflow: hidden;
}
#lems-animation {
height: 200px;
background: linear-gradient(to right, #e8f5e9, #fff);
position: relative;
overflow: hidden;
}
.nerve-line {
position: absolute;
bottom: 50%;
width: 100%;
height: 10px;
background: #333;
animation: none;
}
/* GBSアニメーション: 神経脱髄を表現(線が崩壊する) */
#gbs-animation .nerve-line {
animation: demyelination 3s infinite;
}
@keyframes demyelination {
0% { transform: translateX(0); width: 100%; }
50% { transform: translateX(50%); width: 50%; opacity: 0.5; }
100% { transform: translateX(100%); width: 0; opacity: 0; }
}
/* MGアニメーション: 神経伝達の疲労を表現(線が弱まる) */
#mg-animation .nerve-line {
animation: fatigue 2s infinite alternate;
}
@keyframes fatigue {
0% { opacity: 1; }
100% { opacity: 0.2; }
}
/* LEMSアニメーション: 神経伝達の低下を表現(線が遅れて現れる) */
#lems-animation .nerve-line {
animation: transmission-delay 4s infinite;
}
@keyframes transmission-delay {
0% { width: 0; }
50% { width: 50%; }
100% { width: 100%; }
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 10px;
text-align: center;
}
th {
background-color: #4CAF50;
color: white;
}
.interactive-table td {
cursor: pointer;
}
.quiz-section {
margin-top: 40px;
}
.correct { color: green; }
.wrong { color: red; }
button {
margin: 5px;
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1>神経筋疾患の動的鑑別学習</h1>
<p>このページでは、GBS(ギラン・バレー症候群)、MG(筋無力症)、LEMS(ランバート・イートン筋無力症)の鑑別をアニメーションとクイズで学べます。アニメーションをクリックして再生してください。</p>
<!-- 疾患別セクション -->
<div class="container">
<!-- GBSのセクション -->
<div class="animation-box">
<h2>ギラン・バレー症候群 (GBS)</h2>
<div id="gbs-animation">
<div class="nerve-line"></div>
<p>神経の脱髄を表現(クリックでアニメーション開始)</p>
</div>
<ul>
<li>急性進行性四肢麻痺</li>
<li>自律神経不安定</li>
<li>蛋白質亢進性脊髄液</li>
</ul>
<button onclick="startAnimation('gbs')">アニメーション再生</button>
</div>
<!-- MGのセクション -->
<div class="animation-box">
<h2>筋無力症 (MG)</h2>
<div id="mg-animation">
<div class="nerve-line"></div>
<p>神経伝達の疲労を表現(クリックでアニメーション開始)</p>
</div>
<ul>
<li>眼症状から開始</li>
<li>疲労で症状悪化</li>
<li>エドロニウムテスト陽性</li>
</ul>
<button onclick="startAnimation('mg')">アニメーション再生</button>
</div>
<!-- LEMSのセクション -->
<div class="animation-box">
<h2>ランバート・イートン症候群 (LEMS)</h2>
<div id="lems-animation">
<div class="nerve-line"></div>
<p>神経伝達の低下を表現(クリックでアニメーション開始)</p>
</div>
<ul>
<li>近位筋弱性</li>
<li>自律神経症状</li>
<li>波形電位の遠位低下</li>
</ul>
<button onclick="startAnimation('lems')">アニメーション再生</button>
</div>
</div>
<!-- 比較表(インタラクティブ) -->
<div style="margin: 30px 0;">
<h2>三疾患の比較(クリックで詳細表示)</h2>
<table class="interactive-table">
<tr>
<th>項目</th>
<th>GBS</th>
<th>MG</th>
<th>LEMS</th>
</tr>
<tr onclick="showDetail('起始年齢')">
<td>起始年齢</td>
<td>成人</td>
<td>若年女性</td>
<td>中年男性(腫瘍関連頻発)</td>
</tr>
<tr onclick="showDetail('主症状')">
<td>主症状</td>
<td>上行性麻痺</td>
<td>疲労性眼症・咽頭症</td>
<td>近位筋弱性・自律神経症状</td>
</tr>
<tr onclick="showDetail('検査所見')">
<td>検査所見</td>
<td>脊髄液タンパク亢進</td>
<td>AcChR抗体陽性</td>
<td>VGCC抗体陽性</td>
</tr>
</table>
<div id="detail-popup" style="margin-top: 10px; padding: 10px; border: 1px solid #ddd; background: #fff; display: none;"></div>
</div>
<!-- クイズシステム -->
<div class="quiz-section">
<h2>診断クイズ(交互に表示)</h2>
<p id="quiz-question"></p>
<button onclick="checkAnswer('GBS')">GBS</button>
<button onclick="checkAnswer('MG')">MG</button>
<button onclick="checkAnswer('LEMS')">LEMS</button>
<div id="quiz-feedback"></div>
<p id="quiz-score">正解数: 0/0</p>
</div>
<script>
// アニメーション制御関数
function startAnimation(type) {
const element = document.querySelector(`#${type}-animation .nerve-line`);
if (element) {
element.style.animationPlayState = 'running'; // アニメーション開始
setTimeout(() => {
element.style.animationPlayState = 'paused'; // 数秒後に停止
}, 5000); // 5秒後に停止
}
}
// 比較表のインタラクティブ機能
function showDetail(item) {
const details = {
'起始年齢': 'GBS: 成人期に多い。MG: 若年女性に頻発。LEMS: 中年男性で腫瘍関連が多い。',
'主症状': 'GBS: 上行性麻痺が特徴。MG: 眼症状と疲労性悪化。LEMS: 近位筋弱性と自律神経症状。',
'検査所見': 'GBS: 脊髄液の蛋白質亢進。MG: アセチルコリン受容体抗体陽性。LEMS: 電位ゲートカルシウムチャネル抗体陽性。'
};
const popup = document.getElementById('detail-popup');
popup.textContent = details[item] || '詳細情報なし';
popup.style.display = 'block';
}
// クイズシステム
const questions = [
{ question: "朝に目の二重まぶたが出る症状は?", answer: "MG" },
{ question: "突然の四肢麻痺が進行した患者さんは?", answer: "GBS" },
{ question: "肺がん患者に見られる近位筋弱性は?", answer: "LEMS" },
{ question: "疲労後に症状が悪化する眼症状は?", answer: "MG" },
{ question: "自律神経症状を伴う急性麻痺は?", answer: "GBS" }
];
let currentQuestionIndex = 0;
let score = 0;
let totalAnswered = 0;
function showQuestion() {
if (currentQuestionIndex < questions.length) {
document.getElementById('quiz-question').textContent = questions[currentQuestionIndex].question;
document.getElementById('quiz-feedback').textContent = '';
} else {
document.getElementById('quiz-question').textContent = 'クイズ終了!';
}
}
function checkAnswer(userAnswer) {
const correctAnswer = questions[currentQuestionIndex].answer;
const feedback = document.getElementById('quiz-feedback');
totalAnswered++;
if (userAnswer === correctAnswer) {
score++;
feedback.className = 'correct';
feedback.textContent = '正解!';
} else {
feedback.className = 'wrong';
feedback.textContent = `不正解。正解は${correctAnswer}です。`;
}
document.getElementById('quiz-score').textContent = `正解数: ${score}/${totalAnswered}`;
currentQuestionIndex++;
if (currentQuestionIndex < questions.length) {
showQuestion(); // 次の質問
}
}
// 初期化
showQuestion();
</script>
</body>
</html>
このウェブページは、学習を楽しく効果的にするよう設計されています。もし特定の機能を追加してほしい場合(例: 動画の埋め込みや詳細なクイズ)、さらにカスタマイズしたバージョンを提供します!