/* ============================================= */
/* サイドバー全体 */
/* ============================================= */
aside.sidebar {
    width: 190px;
    height: 100vh;
    position: fixed;
    top: 0;
    background: #fff;
    box-shadow: 2px 0px 5px #00000026;
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    z-index: 220;
    /* スクロール */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================= */
/* ロゴエリア */
/* ============================================= */
.sidebar-logo {
    width: 100%;
    border-bottom: #dc000c 2px solid;
}

.sidebar hr {
    margin-left: 10px;
    width: 142px;
}

/* キャッチコピー */
.sidebar-logo .sidebar-copy {
    margin: 0 0 8px 24px;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.48px;
    color: #000;
    text-align: left;
    white-space: nowrap;
}

/* ロゴ */
.sidebar .image-placeholder {
    width: 100%;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin: 12px 0 30px 0;
    position: relative;
    box-sizing: border-box;
}

/* 赤いライン */
.redline {
    height: 2px;
    background-color: #dc000c;
}
.sidebar-nav {
    margin-top: 24px;
}
/* ============================================= */
/* ナビゲーション */
/* ============================================= */
.sidebar nav {
    flex: 1;
    width: 100%;
    padding-left: 20px;
}

.sidebar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 大カテゴリ */
.sidebar nav li.nav-large > a {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 5vh;
    letter-spacing: 0.9px;
    color: #000000;
    text-decoration: none;
    display: block;
}

/* 小カテゴリ */
.sidebar nav li.nav-small > a {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 5vh;
    letter-spacing: 0.8px;
    color: #222222;
    text-decoration: none;
    display: block;
}

/* 区切り線 */
.sidebar nav li.nav-large:not(:first-child)::before,
.sidebar nav li.nav-small::before {
    content: "";
    display: block;
    width: 85%;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.sidebar nav li.nav-small:last-child::after {
    content: "";
    display: block;
    width: 85%;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

/* ============================================= */
/* サブメニュー */
/* ============================================= */
.sidebar nav ul.sub-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar nav ul.sub-list li a {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 5vh;
    letter-spacing: 0.8px;
    text-decoration: none;
    color: #222222;
}

/* ============================================= */
/* 全メニュー：赤丸＋赤文字ホバー（左端固定） */
/* ============================================= */

/* 既存 padding をフル上書きして統一 */
.sidebar nav li.nav-large > a,
.sidebar nav li.nav-small > a,
.sidebar nav ul.sub-list li > a {
    padding-left: 0 !important;
}

/* 全リンク共通 */
.sidebar nav ul li > a {
    position: relative;
    display: block;
    padding-left: 16px; /* 赤丸スペース */
    transition: color 0.3s ease;
}

/* ホバーで赤文字 */
.sidebar nav ul li > a:hover {
    color: #d60000;
}

/* 赤丸（左端固定配置→横長に変更） */
.sidebar nav ul li > a::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    width: 20px;
    height: 10px;
    border-radius: 999px;
    background: #d60000;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ホバー時に出現 */
.sidebar nav ul li > a:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* サブも完全統一 */
.sidebar nav ul.sub-list li > a {
    padding-left: 16px !important;
}

/* ============================================= */
/* ボタンエリア */
/* ============================================= */
.sidebar-buttons {
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-buttons-top {
    display: flex;
}

/* 共通 */
.sidebar-buttons a,
.sidebar-buttons button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
}

/* ログインボタン */
.sidebar-buttons .btn-login {
    width: 50%;
    height: 80px;
    background: #ffffff;
    border-top: 1px solid #619949;
    color: #619949;
}
.register-img {
    color: #fff;
}

/* ログアウト */
.sidebar-buttons .btn-login_red {
    width: 50%;
    height: 80px;
    background: #ffffff;
    border: 1px solid rgb(233, 67, 67);
    color: rgb(233, 42, 42);
}

/* 会員登録 */
.sidebar-buttons .btn-register {
    width: 50%;
    height: 80px;
    background: #619949;
    border: 1px solid #619949;
    color: #fff;
    display: flex;
    align-items: center;
}

.register-img {
    height: 14px;
    filter: brightness(0) invert(1);
}

/* お問合せ */
.sidebar-buttons .btn-contact {
    width: 100%;
    height: 80px;
    background: #d81122;
    border: none;
    color: #fff;
    flex-direction: row;
    gap: 6px;
}

.sidebar-buttons .btn-contact i {
    margin-bottom: 0;
    font-size: 18px;
}

.sidebar nav ul li > a.active {
    color: #d60000;
}

.sidebar nav ul li > a.active::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* PC */
@media screen and (min-width: 960px) {
    /* 必要ならここに追加 */
}

.sidebar-buttons .btn-login:hover,
.sidebar-buttons .btn-login_red:hover,
.sidebar-buttons .btn-register:hover,
.sidebar-buttons .btn-contact:hover {
    opacity: 0.7;
}
