/* ----- 全体の基本設定 ----- */
body {
    background-color: #FDF5E6; /* 全体の背景を優しいベージュに */
    color: #4E443C; /* ★文字色変更★ 全体の文字色をダークブラウンに */
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    padding: 20px 0;
}

/* リンクの色 */
a {
    color: #E6A9B8;
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.7;
}

/* ブログのメイン部分の最大幅と背景 */
#container {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px;
    box-sizing: border-box; /* ★レスポンシブ対応★ */
}

/* メインカラムとサイドバーの間の余白 */
#content {
    display: flex;
    justify-content: space-between;
}
#main {
    width: 68%;
}
#box2 {
    width: 28%;
}


/* ----- ヘッダー ----- */
#blog-title {
    padding-bottom: 20px;
}
#blog-title a {
    color: #4E443C; /* ★文字色変更★ ブログタイトルの色をダークブラウンに */
    font-weight: bold;
}

/* グローバルナビゲーション（メニュー）*/
#global-menu {
    background-color: #E6A9B8;
    border: none;
    border-radius: 5px;
    margin-bottom: 40px;
}
#global-menu a {
    color: #ffffff;
    font-weight: bold;
}
#global-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}


/* ----- 記事のデザイン ----- */
.entry {
    margin-bottom: 60px;
}

.entry-title {
    color: #4E443C; /* ★文字色変更★ 記事タイトルをダークブラウンに */
    text-align: center;
    border: none;
    font-size: 1.6em;
    margin-bottom: 30px;
}

/* 見出しのデザイン(h2) */
.entry-content h2 {
    background: #FDF5E6;
    border-left: 7px solid #E6A9B8;
    padding: 15px 20px;
    margin: 60px 0 30px;
    color: #4E443C; /* ★文字色変更★ 見出しの文字色をダークブラウンに */
    font-size: 1.4em;
    border-radius: 5px;
}

/* 見出しのデザイン(h3) */
.entry-content h3 {
    border-bottom: 2px dotted #E6A9B8;
    color: #4E443C; /* ★文字色変更★ 見出しの文字色をダークブラウンに */
    padding-bottom: 10px;
    margin: 50px 0 25px;
    font-size: 1.2em;
}

/* 記事本文の行間・段落間 */
.entry-content p {
    line-height: 1.9;
    letter-spacing: 0.05em;
    margin-bottom: 1.9em;
}

/* 引用 */
.entry-content blockquote {
    background-color: #FDF5E6;
    border: 1px solid #EAD7D7;
    border-radius: 5px;
    padding: 25px;
    margin: 40px 0;
}

/* 強調したい時のマーカー */
.entry-content mark {
    background: linear-gradient(transparent 60%, #FFDDEE 60%);
    color: inherit;
}

/* 「続きを読む」ボタン */
.entry-see-more a {
    display: block;
    background: #E6A9B8;
    color: #fff;
    padding: 12px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    width: 60%;
    margin: 40px auto 0;
}
.entry-see-more a:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* ----- サイドバー ----- */
.hatena-module {
    background-color: #FDF5E6;
    border: 1px solid #EAD7D7;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hatena-module-title {
    background-color: #E6A9B8;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    font-size: 1.1em;
}

.hatena-module-body {
    padding: 20px;
}

/* ----- 【追加】記事タイトル前にPR表記を自動挿入 ----- */
.entry-title::before {
    content: "【PR】この記事にはプロモーションが含まれています"; /* 表示させたい文言 */
    display: block; /* タイトルの上に表示させる */
    font-size: 0.6em; /* 文字サイズを小さめに */
    color: #999999; /* 文字色を控えめなグレーに */
    font-weight: normal; /* 太字にしない */
    margin-bottom: 15px; /* タイトルとの間に余白を設ける */
    text-align: center; /* 中央揃えにする */
    letter-spacing: 0.05em;
}


/* ----- 【追加】スマートフォン表示への対応（レスポンシブ設定） ----- */
@media screen and (max-width: 768px) {

    body {
        padding: 0; /* スマホでは上下の余白をなくす */
    }
    
    /* コンテンツ全体の余白をスマホ用に調整 */
    #container {
        padding: 20px 15px;
        width: 100%;
        border-radius: 0; /* スマホでは角丸をなくす */
    }
    
    /* レイアウトを縦1列に変更 */
    #content {
        display: block; /* flexを解除して縦並びにする */
    }
    
    /* メインとサイドバーの幅を100%に */
    #main,
    #box2 {
        width: 100%;
    }

    #main {
        margin-bottom: 40px; /* 記事エリアとサイドバーの間に余白を設ける */
    }
    
    /* 文字サイズをスマホ用に微調整 */
    .entry-title {
        font-size: 1.4em;
    }
    .entry-content h2 {
        font-size: 1.2em;
        margin: 40px 0 20px;
    }
    .entry-content h3 {
        font-size: 1.1em;
        margin: 30px 0 15px;
    }
    
    /* 「続きを読む」ボタンの幅を広げて押しやすくする */
    .entry-see-more a {
        width: 90%;
    }

}