/* 全体の設定 */
body {
    background-color: #1a1a1a;
    color: #d4af37; /* ゴールド */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* セクション設定 */
section {
    background: #262626;
    border: 1px solid #d4af37;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8em;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* フォーム要素 */
input[type="text"], textarea, input[type="file"] {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 10px;
    width: 100%;
    margin-top: 5px;
    box-sizing: border-box;
}

/* ボタン：ゴールドグラデーション */
button {
    background: linear-gradient(45deg, #d4af37, #f9f295, #b38728);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 2px;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* フィルターボタン（アクティブ状態） */
.filter-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-group button {
    background: #111;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.filter-group button.active {
    background: linear-gradient(45deg, #d4af37, #f9f295, #b38728);
    color: #000;
}

/* ランキングカード */
.rank-card {
    background: #111;
    border: 1px solid #444;
    padding: 25px;
    margin-bottom: 50px;
    border-radius: 8px;
    position: relative;
    transition: border-color 0.3s;
}

.rank-card:hover {
    border-color: #d4af37;
}

.rank-header h3 {
    margin: 0;
    font-size: 2em;
    font-style: italic;
}

.share-badge {
    font-size: 0.6em;
    background: rgba(212, 175, 55, 0.2);
    padding: 2px 10px;
    border: 1px solid #d4af37;
    border-radius: 20px;
}

.rank-img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 20px auto;
    border: 3px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* 投票ボタン（カード内） */
.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.vote-buttons button {
    font-size: 0.75em;
    padding: 5px 10px;
}

/* レーダーチャート（SVG方式・完全同期版） */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 320px;
    margin: 30px auto;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-bg-poly {
    fill: rgba(212, 175, 55, 0.05);
    stroke: #555;
    stroke-width: 1;
}

.chart-line {
    stroke: #444;
    stroke-width: 1;
}

.svg-chart-fill {
    /* ゴールドのグラデーション風の塗りつぶし */
    fill: rgba(212, 175, 55, 0.6); 
    stroke: #f9f295;
    stroke-width: 2.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.chart-svg text {
    font-size: 14px;
    fill: #d4af37;
    font-weight: bold;
}

/* 記事エリア */
.article-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #d4af37;
    padding: 15px;
    margin: 20px 0;
    color: #eee;
    font-style: italic;
}

.source {
    font-size: 0.8em;
    color: #888;
    text-align: right;
}

#current-category {
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* リンク装飾の復活 */
a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:visited {
    color: #d4af37;
}

a:hover {
    color: #f9f295;
    text-decoration: underline;
    opacity: 0.8;
}

/* ナビゲーション用小文字調整 */
div[style*="font-size:small"] {
    margin-bottom: 20px;
    color: #d4af37;
    word-break: break-all;
}

/* スマホ対応（レスポンシブ） */
@media screen and (max-width: 480px) {
    body { padding: 10px; }
    section { padding: 15px; }
    .chart-container {
        transform: scale(0.9);
        margin: -10px auto;
    }
    .filter-group button {
        font-size: 0.8em;
        flex: 1 1 calc(33% - 10px);
    }
    .rank-header h3 { font-size: 1.5em; }
}