/* リセットCSS */
body, div, p, h1, h2, h3, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全体のスタイル */
body {
    font-family: 'Noto Sans JP', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #f5f5f5;
    word-break: normal; /* スマホでの文字ガタガタ対策 */
}

/* コンテナ（はてなブログのメインコンテンツ） */
#blog-title, .main, .entry-content {
    max-width: 1200px; /* 過去の希望を反映 */
    margin: 0 auto;
    padding: 20px;
}

/* ヘッダー（ブログタイトル部分） */
#blog-title {
    background: linear-gradient(135deg, #ff6b6b, #ff9ff3);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

#title a {
    color: #fff;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#blog-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 記事コンテンツ */
.entry-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.entry-content h2 {
    color: #1e40af;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 0.5rem;
    position: relative;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff9ff3;
    transition: width 0.3s ease;
}

.entry-content h2:hover::after {
    width: 100px; /* ホバーでアニメーション */
}

.entry-content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.entry-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.entry-content ul li::before {
    content: '★';
    color: #ff6b6b;
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* ハイライトボックス（ボイカレらしいアクセント） */
.boikare-highlight {
    background: #fff1f9;
    padding: 1.5rem;
    border-left: 5px solid #ff6b6b;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTAボタン */
.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 1rem 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 広告用コンテナ（過去の希望を反映） */
.ad-container {
    min-height: 90px; /* 728×90広告用 */
    text-align: center;
    margin: 2rem 0;
    overflow: hidden; /* CLS対策 */
}

/* サイドバー（はてなモジュール） */
.hatena-module {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hatena-module-title {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff9ff3;
}

/* フッター */
footer {
    background: #2d3748;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

footer p {
    font-size: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #blog-title {
        padding: 2rem 1rem;
    }

    #title a {
        font-size: 2rem;
    }

    .entry-content {
        padding: 1.5rem;
    }

    .entry-content h2 {
        font-size: 1.6rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .ad-container {
        min-height: 50px; /* スマホ用広告サイズ */
    }
}

@media (max-width: 480px) {
    #blog-title {
        padding: 1.5rem 1rem;
    }

    .entry-content {
        padding: 1rem;
    }

    .entry-content h2 {
        font-size: 1.4rem;
    }
}

/* はてなブログのデフォルト要素を非表示 */
.entry-date, /* 記事の公開日時 */
.entry-footer, /* 記事フッター（カテゴリ、タグ、編集リンクなど） */
.hatena-star-container, /* はてなスター */
.social-buttons, /* ソーシャルシェアボタン（Twitter、はてブなど） */
.hatena-bookmark-button, /* はてなブックマークボタン */
.twitter-share-button, /* Twitterシェアボタン */
.share-button, /* その他のシェアボタン */
.comment-box, /* コメント欄 */
.author-profile, /* 著者情報 */
.entry-info, /* 記事情報全般 */
.bookmark-count /* ブックマーク数 */
{
    display: none !important;
}

/* CLS対策：レイアウト崩れ防止 */
.entry-content {
    min-height: 300px; /* コンテンツエリアの最小高さ */
    overflow: hidden; /* 広告や画像の飛び出し防止 */
}