:root {
    --primary-color: #005a9c;
    --accent-color: #007bff;
    --text-color: #333;
    --bg-color: #f4f6f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --hover-bg: #e9ecef;
}

/* 全体のスタイル */
body {
    font-family: 'Noto Sans JP', sans-serif, 'Meiryo', 'system-ui';
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* リンク */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ヘッダー */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2em;
}

header p {
    color: #e0e0e0;
    margin: 5px 0 0;
    font-size: 0.9em;
}

/* ナビゲーション */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #555;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--hover-bg);
    border-bottom: 3px solid var(--primary-color);
}

/* レイアウトコンテナ */
.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

main {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* セクション */
section {
    margin-bottom: 50px;
}

h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4em;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
}

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

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* 授業計画カードスタイル */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.schedule-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.schedule-item h3 {
    margin-top: 0;
    font-size: 1.2em;
    border-left: none;
    padding-left: 0;
    color: var(--primary-color);
}

.schedule-item a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.schedule-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}

/* 課題ボックス（共通パーツ） */
.assignment-box {
    background-color: #e3f2fd;
    border: 2px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.assignment-box h3 {
    color: #1565c0;
    border-left: none;
    border-bottom: 1px solid #90caf9;
    padding-bottom: 10px;
    padding-left: 0;
    margin-top: 0;
}

/* フッター */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--primary-color);
    color: white;
    margin-top: 50px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    main {
        padding: 20px;
    }

    h2 {
        font-size: 1.5em;
    }
}
/* --- ここからタブ切り替え用スタイル --- */

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    gap: 5px;
}

.tab-nav-item {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
}

.tab-nav-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

.tab-nav-item.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: rgba(0, 90, 156, 0.05); /* primary-colorの薄い背景 */
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

/* --- ここまで --- */