/* 基本設定 (location_style.css をベースにテーマカラーなどを変更) */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8; margin: 0; padding: 0;
    background-color: #f4f4f4; /* 基本的な背景色に戻す */
    color: #333; display: flex; flex-direction: column; min-height: 100vh;
}
.container { width: 90%; max-width: 900px; margin: 20px auto; padding: 25px; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); border-radius: 8px; flex-grow: 1; }

header { background: linear-gradient(135deg, #6f42c1, #4a2c82); /* 紫系のグラデーション */ color: #ffffff; padding: 1rem 0; text-align: center; border-bottom: 5px solid #3a2069; position: sticky; top: 0; z-index: 100; }
header h1 { margin: 0 0 10px 0; font-size: 2.5rem; font-weight: bold; letter-spacing: 1px; }
/* ヘッダーナビゲーション (JSで生成) */
.header-nav { background-color: rgba(0, 0, 0, 0.15); padding: 0.5rem 0; margin-top: 10px; }
.header-nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.header-nav ul li { display: inline-block; margin: 0 15px; }
.header-nav ul li a { color: #ffffff; text-decoration: none; font-size: 1rem; font-weight: 500; padding: 5px 10px; border-radius: 4px; transition: background-color 0.3s ease; }
.header-nav ul li a:hover, .header-nav ul li a.active { background-color: rgba(255, 255, 255, 0.2); }

main h2 { color: #6f42c1; /* 紫系 */ border-bottom: 2px solid #b39ddb; padding-bottom: 8px; margin-top: 30px; margin-bottom: 20px; font-size: 2rem; }
main h3 { color: #5e35b1; margin-top: 25px; margin-bottom: 15px; font-size: 1.6rem; border-left: 5px solid #6f42c1; padding-left: 10px; }
p { margin-bottom: 1.2em; font-size: 1.05rem; }
ul, ol { margin-bottom: 1.2em; padding-left: 25px; }
li { margin-bottom: 0.5em; }

.keyword { font-weight: bold; color: #fd7e14; /* オレンジ系 */ cursor: pointer; display: inline-block; }
.keyword:hover { text-decoration: underline; }

.example { background-color: #f3e5f5; /* 薄い紫 */ border-left: 5px solid #ab47bc; padding: 15px; margin: 20px 0; border-radius: 5px; }
.example-sentence { font-style: italic; font-size: 1.1rem; margin-bottom: 5px; }
.example-sentence-english { cursor: pointer; display: inline-block; font-family: 'Courier New', Courier, monospace; /* 数字は等幅が見やすい */ }
.example-sentence-english:hover { text-decoration: underline; color: #4a2c82; }
.translation { color: #495057; font-size: 0.95rem; }
.point-box { background-color: #fce4ec; border: 1px solid #f8bbd0; padding: 10px; margin-top: 8px; border-radius: 4px; font-size: 0.9em; border-left-width: 5px; border-left-color: #f06292; /* ピンク系 */ }

/* コードブロック */
.code-block { position: relative; background-color: #282c34; color: #abb2bf; padding: 20px; margin: 20px 0; border-radius: 6px; overflow-x: auto; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 0.95em; line-height: 1.5; }
.copy-button { position: absolute; top: 10px; right: 10px; background-color: #6c757d; color: #ffffff; border: none; padding: 6px 12px; cursor: pointer; border-radius: 4px; font-size: 0.85em; opacity: 0.7; transition: opacity 0.3s ease; }
.code-block:hover .copy-button { opacity: 1; }
.copy-button:hover { background-color: #5a6268; }

/* JSアプリ・クイズ */
.js-app-container { border: 1px solid #d1c4e9; padding: 25px; margin: 25px 0; background-color: #ede7f6; border-radius: 6px; } /* 紫系 */
.js-app-container h4 { margin-top: 0; color: #5e35b1; font-size: 1.4rem; }
.quiz-container { border: 1px solid #e1bee7; padding: 25px; margin-top: 25px; background-color: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.quiz-question { font-size: 1.25rem; margin-bottom: 15px; font-weight: 500; }
.quiz-options button { display: block; width: 100%; padding: 12px; margin-bottom: 8px; background-color: #9575cd; /* やや薄い紫 */ color: white; border: none; border-radius: 5px; cursor: pointer; text-align: left; font-size: 1rem; transition: background-color 0.2s ease; }
.quiz-options button:hover:not(:disabled) { background-color: #7e57c2; }
.quiz-options button:disabled { opacity: 0.7; cursor: not-allowed; }
.quiz-options button.correct { background-color: #66bb6a; } /* 緑系 */
.quiz-options button.incorrect { background-color: #ef5350; } /* 赤系 */
.quiz-feedback { margin-top: 15px; font-weight: bold; padding: 10px; border-radius: 4px; }
.quiz-feedback.correct { color: #2e7d32; background-color: #e8f5e9; border: 1px solid #c8e6c9; }
.quiz-feedback.incorrect { color: #c62828; background-color: #ffebee; border: 1px solid #ffcdd2; }
.quiz-options-inline button { display: inline-block; width: auto; margin-right: 10px; }

/* ページナビゲーション */
.page-navigation { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #dee2e6; }
.page-navigation a { text-decoration: none; color: #6f42c1; padding: 10px 18px; border: 1px solid #6f42c1; border-radius: 5px; transition: all 0.3s ease; font-weight: 500; }
.page-navigation a:hover { background-color: #6f42c1; color: #ffffff; }
.page-navigation .disabled { color: #adb5bd; border-color: #adb5bd; pointer-events: none; }

/* 目次スタイル */
.toc ul { list-style-type: none; padding-left: 0; }
.toc > ul > li { margin-bottom: 15px; }
.toc > ul > li > span { font-weight: bold; font-size: 1.3rem; color: #5e35b1; display: block; margin-bottom: 5px; }
.toc ul ul { list-style-type: '🔢'; /* 数字入力絵文字など */ padding-left: 25px; margin-top: 5px; }
.toc ul ul li { margin-bottom: 8px; }
.toc a { text-decoration: none; color: #6f42c1; font-size: 1.05rem; }
.toc a:hover { text-decoration: underline; color: #4a2c82; }

/* 英単語リスト */
.vocabulary-list { margin-top: 40px; padding-top: 25px; border-top: 1px solid #dee2e6; }
.vocabulary-list h3 { font-size: 1.5rem; color: #5e35b1; margin-bottom: 15px; }
.vocabulary-item { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px dashed #e0e0e0; }
.vocabulary-item:last-child { border-bottom: none; }
.vocabulary-item .term-container { display: flex; align-items: center; margin-bottom: 5px; }
.vocabulary-item strong { font-size: 1.15rem; margin-right: 8px; }
.vocabulary-item .term { cursor: pointer; color: #fd7e14; font-weight: bold; } /* オレンジ */
.vocabulary-item .term:hover { text-decoration: underline; }
.vocabulary-item .meaning { font-size: 1rem; color: #343a40; margin-left: 5px; }
.vocabulary-item .example-sentence-container { margin-top: 8px; padding-left: 15px; border-left: 3px solid #6f42c1; }
.vocabulary-item .example-sentence-english { font-style: italic; color: #6f42c1; display: block; margin-bottom: 3px; }
.vocabulary-item .example-translation { font-size: 0.9rem; color: #495057; }

/* フッター */
footer { text-align: center; padding: 20px; background-color: #4a2c82; /* 濃い紫 */ color: #f8f9fa; margin-top: auto; }
footer p { margin: 0; font-size: 0.9rem; }
footer a { color: #d1c4e9; text-decoration: underline; } /* フッター内リンク色 */
footer a:hover { color: #ffffff; }

/* レスポンシブ */
@media (max-width: 768px) { /* 省略: 前回のコードと同様 */ }
@media (max-width: 480px) { /* 省略: 前回のコードと同様 */ }
