/* 変数 */
:root {
    --color-main: rgb(33, 98, 48);
    --color-sub: rgb(106, 151, 60);
    --color-text: #333;
}

.side-nav {
    padding-left: 30px;
    width: 380px;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.side-nav-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s;
    align-items: center;
}

/* リンク全体のエリア */
.side-nav-item a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--color-text);
    position: relative;
}

/* アイコン部分 */
.nav-icon {
    display: flex;
    align-items: center;
    width: 35px;
    margin-right: 15px;
}

.nav-icon img {
    width: 100%;
    height: auto;
}

/* テキスト部分 */
.nav-text {
    font-weight: bold;
    flex: 1;
}

/* 右の矢印（CSSで自作） */
.nav-arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: rotate(45deg);
}

/* 【重要】現在表示中のページのスタイル */
.side-nav-item.is-active {
    border-left: 5px solid var(--color-sub);
    /* 左の太い緑線 */
}

.side-nav-item.is-active .nav-text {
    color: var(--color-sub);
    /* アクティブ時の文字色 */
}

.side-nav-item.is-active .nav-arrow::after {
    border-color: var(--color-sub);
}

/* ホバー時の動き */
.side-nav-item:hover {
    background-color: #f9f9f9;
}

/* =================================================
    タブレット用 ( 1200px以下)
   ================================================= */
@media screen and (max-width: 1200px) {
    .side-nav {
        padding: 0;
        width: 100%;
    }
}