.good_area {
    display: flex;
    align-items: center;
    gap: 3px;
}

.good_area span {
    display: inline !important;
    margin: auto;
}

.views_area {
    display: flex;
    align-items: center;
    gap: 3px;
}

.views_area span {
    display: inline !important;
    margin: auto;
    color: #777777;
}

.views_score {
    font-size: 11px;
    line-height: 1;
}

.good_score {
    font-size: 11px;
    line-height: 1;
}

.good_score span {
    color: #777777;
}

.icon-views {
    fill: #B4B4B4;
    width: 17px;
    height: 17px;
    display: block;
}

/* いいねアイコン共通 */
.icon-good_voted,
.icon-good_active {
    stroke-width: 25;
    stroke-miterlimit: 10;
    width: 24px;
    height: 24px;
    transform: translateY(-2px);
    display: block;
    padding-top: 2px;
}

.icon-good_active {
    fill: #FFFFFF;
    stroke: #FFAA00;
}

.icon-good_voted {
    fill: #FFAA00;
    stroke: #FF5A00;
}

/* シェアエリア */
.sns_section {
    text-align: center;
    margin: 27px auto 20px auto;
    padding: 16px;
    width: 80%;
}

.sns_section .social_actions {
    gap: 7px;
}

.sns_section .social_actions li.sns-btn-wrap {
    width: 48px;
    height: 48px;
}

.social_actions li.sns-btn-wrap svg.icon-x {
    width: 24px;
    height: 24px;
}

.social_actions li.sns-btn-wrap svg.icon-line {
    width: 33px;
    height: 33px;
}

.sns_section .social_actions li.copy-url-btn {
    background-color: #FFFFFF;
    border: 1px solid #333333;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sns_section .social_actions li.copy-url-btn:hover {
    background-color: #F5F5F5;
}

.sns_section .social_actions svg.icon-copy {
    width: 24px;
    height: 24px;
    fill: #333333;
}

/* コピー完了の吹き出し */
.copy-tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    background-color: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copy-tooltip.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333333;
}

/* 非同期失敗時の吹き出し */
.failed-bookmark {
    position: absolute;
    bottom: 30px;
    left: -700%;
    width: 300px;
    background-color: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}


.failed-bookmark.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.failed-bookmark.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
}

.failed-bookmark::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333333;
}

.failed-vote {
    position: absolute;
    bottom: 30px;
    left: 500%;
    width: 300px;
    background-color: #333333;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    word-wrap: break-word;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}


.failed-vote.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.failed-vote.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
}

.failed-vote::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 6%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333333;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .sns_section .social_actions li.sns-btn-wrap {
        width: 32px;
        height: 32px;
    }

    .social_actions li.sns-btn-wrap svg.icon-x {
        width: 16px;
        height: 16px;
    }

    .social_actions li.sns-btn-wrap svg.icon-line {
        width: 22px;
        height: 22px;
    }

    .sns_section .social_actions svg.icon-copy {
        width: 18px;
        height: 18px;
        fill: #333333;
    }

    .icon-good_active,
    .icon-good_voted {
        transform: translateY(-1px);
        padding-top: 1px;
    }
}

/* トースト通知 */
#toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #555555;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-out;
}

@media screen and (max-width: 768px) {
    #toast {
        max-width: calc(100% - 32px);
        padding: 12px 20px;
        font-size: 13px;
        top: 16px;
    }
}

