/* --- 阿部寛スタイル・スマホ最適化CSS --- */

html, body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

body {
    display: flex;
    flex-direction: row; /* 横並び */
    font-family: "MS PGothic", "Osaka", sans-serif;
    color: #000;
}

/* 左側の固定グレー領域 */
.left-sidebar {
    width: 220px;
    background-color: #f0f0f0;
    border-right: 2px solid #999;
    padding: 20px;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
}

/* 右側のメイン領域（KUSAKABE背景） */
.main-content {
    margin-left: 260px;
    padding: 30px;
    flex-grow: 1;
    min-height: 100vh;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='250' viewBox='0 0 600 250'%3E%3Cstyle%3Etext %7B font-family: sans-serif; font-size: 36px; fill: rgba(0, 128, 0, 0.15); font-weight: bold; %7D%3C/style%3E%3Ctext x='0' y='100' transform='rotate(-25 0 100)'%3EKUSAKABE RYOTA%3C/text%3E%3Ctext x='300' y='220' transform='rotate(-25 300 220)'%3EKUSAKABE RYOTA%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

.menu-list {
    list-style-type: none;
    padding-left: 5px;
    line-height: 2.5;
}

.menu-list li::before {
    content: "●";
    margin-right: 8px;
}
/* 配色は維持 */
.menu-list li:nth-child(1)::before { color: #0000FF; }
.menu-list li:nth-child(2)::before { color: #FF0000; }
.menu-list li:nth-child(3)::before { color: #FFFF00; }
.menu-list li:nth-child(4)::before { color: #008000; }
.menu-list li:nth-child(5)::before { color: #800080; }
.menu-list li:nth-child(6)::before { color: #A52A2A; }
.menu-list li:nth-child(7)::before { color: #FF8C00; }

/* リンク */
a:link { color: #0000FF; text-decoration: underline; }
a:visited { color: #800080; }

/* --- スマホ向けのレスポンシブ設定 --- */
@media screen and (max-width: 768px) {
    body {
        flex-direction: column; /* 縦並びに変更 */
    }
    .left-sidebar {
        width: 100%;
        height: auto;
        position: static; /* 固定を解除 */
        border-right: none;
        border-bottom: 2px solid #999;
        box-sizing: border-box;
    }
    .main-content {
        margin-left: 0; /* 余白を消す */
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    img {
        max-width: 100%; /* 画像が画面からはみ出さないように */
        height: auto;
    }
}