/* デフォルトスタイルのリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

header {
    background-color: #4a76a8;
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 20px;
    margin-bottom: 5px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

section {
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 10px;
    color: #4a76a8;
}

p {
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* 候補者カード関連のスタイル */
.candidate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.candidate-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.candidate-image {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 候補者詳細ページのスタイル */
.candidate-detail-image {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
    max-width: 100%;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

/* 候補者詳細ページのレイアウト */
.candidate-image-container {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

/* 詳細情報の色やスタイル */
.card-body h1 {
    margin-top: 1rem;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-body .badge {
    font-size: 0.9rem;
}

/* 詳細ページの情報セクション */
.candidate-info-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.candidate-info-section h3 {
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* 詳細ページでの戻るボタン */
.btn-outline-secondary {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* バッジとタグのスタイル */
.badge {
    font-weight: normal;
    padding: 0.5em 0.8em;
}

/* キャッチコピーのスタイル */
.quote-text {
    font-style: italic;
    color: #007bff;
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin: 10px 0;
}