/* 全体のスタイル */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fdfaf6; /* ほんのり暖かい背景 */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

/* ヘッダーとナビゲーション */
header {
    background-color: #c2410c; /* 濃いオレンジ */
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

/* 追跡型メニュー（ハロ提案A：ここに統合） */
nav {
    background-color: #f97316; /* メインのオレンジ */
    padding: 10px 0;
    position: -webkit-sticky; /* Safari対応 */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #fdba74; /* 明るいオレンジ */
}


/* メインコンテンツ */
main {
    padding: 30px 20px;
}

section {
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    font-size: 2em;
    color: #c2410c; /* 濃いオレンジ */
    border-left: 5px solid #f97316; /* メインのオレンジ */
    padding-left: 15px;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.7em;
    color: #f97316; /* メインのオレンジ */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fdba74; /* 明るいオレンジ */
    padding-bottom: 10px;
}

h4 {
    font-size: 1.4em;
    color: #c2410c; /* 濃いオレンジ */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #fdba74; /* 明るいオレンジ */
    padding-bottom: 5px;
}

h5 {
    font-size: 1.2em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

p, li {
    font-size: 1em;
}

/* リストのスタイル */
ul, ol {
    padding-left: 20px;
}

ul > li {
    list-style-type: disc;
    margin-bottom: 10px;
}

ol > li {
    margin-bottom: 10px;
}

/* テーブルのスタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

thead th {
    background-color: #f97316; /* メインのオレンジ */
    color: #fff;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody .part-header td {
    background-color: #fef08a; /* 暖色系の黄色 */
    font-weight: bold;
    text-align: center;
}

/* 強調テキスト */
strong, b {
    color: #d62828;
    font-weight: bold;
}

/* 課題セクション */
.assignment-box {
    border: 2px solid #fdba74; /* 明るいオレンジ */
    background-color: #fff7ed; /* 薄いオレンジ背景 */
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
}

.assignment-box h3 {
    margin-top: 0;
    color: #c2410c; /* 濃いオレンジ */
    border-bottom: none;
}


/* 講義ページ用タブUI */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #f97316; /* メインのオレンジ */
    margin-bottom: 30px;
}

.tab-nav-item {
    padding: 10px 25px;
    cursor: pointer;
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-nav-item.active {
    background-color: #f97316; /* メインのオレンジ */
    color: #fff;
    border-color: #f97316;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* コラムページ用スタイル（ハロ提案B） */
.col-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.example-bad {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.example-good {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6; /* 青系を維持（対比のため） */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pitfall-card {
    border-top: 4px solid #b91c1c; /* 赤 */
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.escape-method {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.escape-method h5 {
    color: #166534;
    margin-top: 0;
}

.text-sm {
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

.text-red {
    color: #b91c1c;
}

.text-blue {
    color: #1d4ed8;
}

blockquote {
    border-left: 4px solid #fdba74; /* 明るいオレンジ */
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: #f9f9f9;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777;
}