/* 右端に固定アコーディオン */
#right-type {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 999;
    width: var(--acc-title);
    height: var(--acc-height-type1);
    transition: width 0.3s;
}

/* 縦書きに */
#right-type .swell-block-accordion__label {
    writing-mode: vertical-rl;
    transform: rotate(0deg);
    text-align: center;
    margin-bottom: 0;
    padding-right: 0 !important;
    display: block;
    height: fit-content;
}

/* 背景整える */
#right-type .swell-block-accordion__title {
    width: var(--acc-title);
    position: absolute;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: var(--acc-height-type1);
    color: var(--white);
    background-color: var(--color-fixedMenu);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* 閉じる・開く文字を追加 */
#right-type .swell-block-accordion__icon::before {
    position: absolute;
    content: "ひらく";
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    height: 12px;
    font-size: 12px;
    line-height: 12px;
    writing-mode: horizontal-tb !important;
    white-space: nowrap;
}

#right-type .swell-block-accordion__item[open] .swell-block-accordion__icon::before {
    content: "とじる";
    left: 50%;
}




/* open時のスタイル ------------------------------- */
/* アコーディオンを開いた時の幅 */
#right-type.open {
    width: calc(var(--acc-title) + var(--acc-width));
}

/* アコーディオンを開いた時の中身 */
#right-type .swell-block-accordion__item[open] .swell-block-accordion__body {
    display: flex;
    height: 100% !important;
    opacity: 1 !important;
}

#right-type .swell-block-accordion__body>#rfixedContentID {
    display: flex;
    justify-content: center;
    align-items: center;
}

#right-type .swell-block-accordion__body>#rfixedContentID>div {
    color: var(--color-fixedMenu);
    padding: 0 10px;
    height: auto;
}

:not(.is-opened)>.swell-block-accordion__body {
    height: 0 !important;
    opacity: 0;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

#right-type .swell-block-accordion__body {
    position: absolute;
    left: var(--acc-title);/* タイトル分右へ */
    top: 0;
    width: var(--acc-width);
    height: 100%;
    background: var(--white);
    overflow: hidden;
    z-index: 1;
    display: none;
    border-top: 3px solid var(--color-fixedMenu);
    border-bottom: 3px solid var(--color-fixedMenu);
    padding: 0;
}

#right-type.open .swell-block-accordion__title {
    height: 100%;
}

#right-type .swell-block-accordion__body>#rfixedContentID>div {
    color: var(--color-fixedMenu);
    padding: 0 10px;
    height: auto;
}


/* 矢印スタイル-------------------------------- */
/* new矢印設定 */
#right-type .icon-caret-down:before {
    content: "\e911" !important;
}
/* 矢印位置 */
#right-type .swell-block-accordion__icon {
    position: relative !important;
    margin-bottom: 50px;
}

/* 開いた時の矢印デフォルトを消す */
#right-type .swell-block-accordion__item[open] .icon-caret-up:before {
    content: "" !important;
}
/* 新しい矢印を見えるようにする */
#right-type .icon-caret-down {
    opacity: 1 !important;
}
/* 開いた時の矢印の向き */
#right-type .swell-block-accordion__item[open] .icon-caret-down {
    transform: translateY(-3px) rotate(180deg) !important;
}   


#right-type .swell-block-accordion__body>#rfixedContentID div span.rfixedContent-line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-fixedMenu);
    margin: 18px 0;
}


/* スマホでは非表示 */
@media screen and (max-width: 959px) {
    #right-type {
        display: none;
    }
}

