@charset "UTF-8";

/* =========================================
   Base Styles - SEO & Readability First
   ========================================= */
:root {
    --primary-color: #004085; /* 知的な濃紺 */
    --accent-color: #cce5ff;  /* 優しいハイライト */
    --text-color: #333333;
    --bg-color: #ffffff;
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-serif: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    background-color: #fdfdfd;
    line-height: 1.9; /* 読み疲れしない広めの行間 */
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* =========================================
   Layout & Responsive
   ========================================= */
.container {
    max-width: 800px; /* 記事が読みやすい最適な幅 */
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー */
header {
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 40px;
    padding: 20px 0;
}

.site-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

/* =========================================
   Typography (Article)
   ========================================= */
article {
    margin-bottom: 60px;
}

/* スマホでのタイトル改行崩れを防ぐ */
h1 {
    font-size: clamp(20px, 4vw, 28px); /* 画面幅に応じて可変 */
    line-height: 1.4;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}

h2 {
    font-size: clamp(18px, 3.5vw, 22px);
    background: linear-gradient(to right, #f0f8ff, transparent);
    padding: 12px 15px;
    border-left: 5px solid var(--primary-color);
    margin-top: 60px;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.1rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    display: inline-block;
}

p {
    margin-bottom: 2em;
    text-align: justify;
    word-break: break-all; /* 長いURLなどのレイアウト崩れ防止 */
}

/* 箇条書きリスト */
ul, ol {
    background: #f9f9f9;
    padding: 30px 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

li {
    margin-bottom: 10px;
}

/* =========================================
   Components
   ========================================= */
/* コラム風の囲み枠 */
.column-box {
    border: 2px solid var(--accent-color);
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    background: #fff;
}

.column-title {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

/* 独り言（関西弁・本音）エリア */
.voice-bubble {
    font-family: var(--font-serif);
    font-style: italic;
    color: #555;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 0 15px 15px 15px;
    margin: 20px 0 40px 20px;
    font-size: 0.95rem;
    position: relative;
    border-left: 4px solid #aaa;
}

.voice-bubble::before {
    content: "💭";
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 1.2rem;
}

/* 強調（マーカー風） */
strong {
    background: linear-gradient(transparent 70%, #fff799 70%);
    font-weight: bold;
}

/* フッター */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* =========================================
   Mobile Optimization
   ========================================= */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px; /* スマホで見やすいサイズに固定 */
    }
    
    .voice-bubble {
        margin-left: 0; /* スマホではインデントをなくす */
    }
}

/* =========================================
   Navigation Buttons (Prev/Next)
   ========================================= */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    gap: 15px; /* ボタン間の隙間 */
}

.nav-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 45%; /* スマホで並列に並べるため */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* スマホ表示時の調整 */
@media (max-width: 600px) {
    .nav-links {
        font-size: 0.8rem;
    }
    .nav-button {
        padding: 12px 10px;
    }
}