/* 基本的なスタイル設定 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
}

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

/* ヘッダー */
header {
    background-color: #4a90e2;
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #357abd;
}

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

/* ナビゲーション */
nav {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s;
}

nav a:hover {
    color: #357abd;
}

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

.main-layout {
    display: flex;
    flex-wrap: wrap; /* レスポンシブ対応 */
    gap: 30px;
}

.main-content {
    flex: 3; /* メインコンテンツは広い方 */
    min-width: 300px; /* 最小幅 */
}

.sidebar {
    flex: 1; /* サイドバーは狭い方 */
    min-width: 200px; /* 最小幅 */
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar h3 {
    font-size: 1.2em;
    color: #4a90e2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #4a90e2;
}

.pr-link {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid #4a90e2;
}

.pr-link a {
    color: #357abd;
    text-decoration: none;
    transition: color 0.3s;
}

.pr-link a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

.ad-space {
    background-color: #e0f2f7;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    color: #357abd;
    margin-top: 20px;
}

main h2 {
    font-size: 2em;
    color: #357abd;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

main h3 {
    font-size: 1.6em;
    color: #444;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid #4a90e2;
    padding-left: 10px;
}

p {
    margin-bottom: 1.5em;
}

ul, ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

li {
    margin-bottom: 0.8em;
}

strong {
    color: #357abd;
}

/* 画像 */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column; /* 狭い画面ではカラムを縦に積む */
    }
    .sidebar {
        order: -1; /* サイドバーをメインコンテンツの上に表示 */
    }
}

.footer-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4a90e2;
    text-decoration: underline;
}
