/* --------------------------------------------------
 Base Styles
-------------------------------------------------- */
:root {
--text-color: #333;
--bg-color: #fff;
--accent-color: #555; /* 装飾のメインカラー */
--link-color: #0066cc;
--gray-light: #f4f4f4;
--border-color: #ddd;
--font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
* {
box-sizing: border-box;
}
body {
font-family: var(--font-base);
color: var(--text-color);
background-color: var(--bg-color);
margin: 0;
padding: 0;
line-height: 1.6;
-webkit-text-size-adjust: 100%;
}
a {
color: var(--link-color);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* --------------------------------------------------
 Layout
-------------------------------------------------- */
.wrapper {
width: 100%;
max-width: 600px; /* メインカラム最大幅 */
margin: 0 auto;
padding: 0 20px;
background-color: #fff;
}
/* --------------------------------------------------
 Header
-------------------------------------------------- */
header {
padding: 40px 0 20px;
text-align: center;
}
header h1 {
font-size: 24px;
margin: 0 0 20px 0;
font-weight: bold;
letter-spacing: 0.05em;
}
/* ヘッダー画像（着脱可能エリア） */
.header-image {
width: 100%;
margin-bottom: 20px;
}
.header-image img {
width: 100%;
height: auto;
display: block;
border-radius: 4px;
}
/* --------------------------------------------------
 Main Content Area (Post Content)
-------------------------------------------------- */
main {
padding-bottom: 60px;
}
/* 記事内のHタグ装飾 */
.post-content h2 {
font-size: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--accent-color);
margin-top: 40px;
margin-bottom: 20px;
}
.post-content h3 {
font-size: 18px;
padding-left: 10px;
border-left: 5px solid var(--accent-color);
margin-top: 30px;
margin-bottom: 15px;
background-color: #fafafa;
padding-top: 5px;
padding-bottom: 5px;
}
.post-content h4 {
font-size: 16px;
font-weight: bold;
margin-top: 25px;
margin-bottom: 10px;
}
/* 段落・行間 */
.post-content p {
margin-bottom: 1.8em;
line-height: 1.8;
text-align: justify;
}
/* 画像の中央寄せ */
.post-content img {
max-width: 100%;
height: auto;
display: block;
margin: 30px auto; /* 上下マージンと左右自動（中央寄せ） */
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* ほんのり影 */
}
/* リスト */
.post-content ul,
.post-content ol {
margin-bottom: 1.8em;
padding-left: 1.5em;
background-color: #f9f9f9;
padding: 1.5em 1.5em 1.5em 2.5em; /* 箱で囲むスタイル */
border-radius: 4px;
}
.post-content li {
margin-bottom: 0.5em;
}
/* テーブル */
.post-content table {
width: 100%;
border-collapse: collapse;
margin-bottom: 2em;
font-size: 0.9em;
}
.post-content th,
.post-content td {
border: 1px solid var(--border-color);
padding: 12px;
text-align: left;
}
.post-content th {
background-color: var(--gray-light);
font-weight: bold;
width: 30%; /* ラベル幅の目安（必要に応じて調整可） */
}
/* --------------------------------------------------
 Footer
-------------------------------------------------- */
footer {
border-top: 1px solid var(--border-color);
padding: 40px 0;
background-color: #fcfcfc;
margin-top: 40px;
}
.footer-inner {
width: 100%;
max-width: 600px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}
/* フッターメニュー */
.footer-menu {
list-style: none;
padding: 0;
margin: 0 0 20px 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px 30px; /* 行間15px, 列間30px */
}
.footer-menu li a {
color: var(--text-color);
font-size: 14px;
font-weight: bold;
}
.copyright {
font-size: 12px;
color: #888;
}
/* --------------------------------------------------
 Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 480px) {
.post-content th, 
.post-content td {
display: block;
width: 100%;
}
.post-content th {
background-color: #eee;
}
/* スマホではフッターメニューを縦並び気味にする場合 */
.footer-menu {
flex-direction: column;
gap: 10px;
}
}