/* 全般のスタイルリセットと基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 14px;
    color: #e0e0e0;
}

/* メインコンテンツ */
main {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.info-section h2 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

.info-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 一覧表（テーブル）のスタイル */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

tr:hover {
    background-color: #fcfcfc;
}

.mod-name {
    font-weight: bold;
    color: #2c3e50;
}

/* バッジスタイル */
.badge {
    background-color: #e8f4fd;
    color: #1d88e5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* ボタン・リンクの共通スタイル */
.btn-link {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s ease;
    text-align: center;
}

.btn-link:hover {
    background-color: #2980b9;
}

/* 詳細ページ用の追加スタイル */
.detail-card h2 {
    font-size: 17px;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
    border-left: 4px solid #2c3e50;
    padding-left: 10px;
}

.detail-card ul, .detail-card ol {
    margin-left: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.detail-card li {
    margin-bottom: 8px;
}

.detail-card code {
    background-color: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: #e74c3c;
}

/* ダウンロードボタン */
.download-area {
    text-align: center;
    margin: 35px 0 20px 0;
}

.btn-download {
    display: inline-block;
    background-color: #2ecc71;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-download:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
}

/* 戻るボタン */
.back-link-wrapper {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-back {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
}

.btn-back:hover {
    color: #34495e;
    text-decoration: underline;
}

/* フッター */
footer {
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 20px;
}