/* 作品個別ページ */
#product {
    margin: 2px 5% 0 5%;
    height: calc(100% - 55px);
    box-sizing: border-box;
}
#product h1 {
    font-size: 1.2em;
    border-bottom: 1px solid var(--content-color);
    margin-top: 0.2em;
    color: black;
}
#product .content {
    /* word-wrap: break-word;
    white-space: pre-wrap; */
    box-sizing: border-box;
    height: 100%;
    margin: 1em;
    flex-grow: 1;
    padding: 0.5em;
    color: var(--content-color);
}
#product .content_inner {
    width: fit-content;
    max-width: 100%;
}
#product .vertical_text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 23px;
}
.product_content_container {
    --title-adjustment: 0px;
    display: flex;
    column-gap: 1em;
    height: calc(100% - 6.5em - var(--title-adjustment));
    align-items: center;
    justify-content: center;
}

/* 下部のコンテンツ */
.bottom_content {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 1em;
}
.bottom_content > div > * {
    margin-bottom: 0.5em;
}
.post_info, .count_content {
    display: flex;
    column-gap: 1em;
}
.count_content p {
    display: flex;
    align-items: center;
}
.post_info h4 {
    margin-top: 1em;
    color: var(--main-color);
}
.created_date {
    white-space: nowrap;
}

/* 閉じるボタン */
.close_button {
    position: absolute;
    top: 0.2em;
    right: 0em;
    font-size: 3rem;
    cursor: pointer;
    color: var(--main-color);
    transition: all 0.3s ease;
}
.close_button:hover {
    text-shadow: 0 0 5px #caeee1;
}

/* 作品のアクションボタン */
.product_actions {
    display: flex;
    column-gap: 0.5em;
    margin-top: 0;
    margin-right: 4em;
    justify-content: flex-end;
}
.product_actions button {
    font-size: 1.8em;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px;
    height: 50px;
    color: var(--content-color);
    display: flex;
    align-items: center;
    flex-direction: column;
}
.product_actions small {
    font-size: 12px;
}
/* .recommendation_button i {
    color: var(--like-color);
} */
.product_actions .tip_button {
    color: var(--coin-color);
}
.product_actions .share_button {
    color: var(--main-color);
}
.read_button .ph-eye-slash.has_been_read {
    color: #d38634 !important;
}
.like_button {
    position: relative;
}
/* .like_button:hover {
    color: #EF4444;
    text-shadow: 0 0 4px #f5d3d3;
} */
.heart_active {
    color: var(--like-color) !important;
}
.heart_animation {
    animation: like_button_active 0.5s ease;
}
.ring_heart_animation {
    animation: pulsate 0.5s ease;
}

/* その他ボタンコンテナ */
.other_context_container {
    --othercontent-left: -238px;
    width: 238px;
    box-shadow: 0 0 5px #aaaaaa66;
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    left: var(--othercontent-left);
    border: 1px solid #aaaaaa55;
    padding: 1em;
    backdrop-filter: blur(10px);
    border-radius: 3px;

    & .other_content_summary {
        /* content: "〉"; */
        transition: all 0.4s ease;
        position: absolute;
        top: -7px;
        right: -33px;
        color: var(--main-color);
        cursor: pointer;
        font-size: 1.8em;

        & i {
            background-color: white;
            border-radius: 15px;
        }
    }

    & button:not(:last-child) {
        margin-bottom: 1em;
    }
    & button {
        display: block;
        width: 182px;
    }
}

@media (max-width: 1000px) {
    .other_context_container {
        --othercontent-left: -210px;
        width: 210px;

        & button {
            width: 160px;
        }

        & .other_content_summary {
            /* font-size: 1em; */
        }
    }
}

@keyframes like_button_active {
    0% {
        color: black;
        transform: scale(0);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        color: var(--like-color);
        transform: scale(1);
    }
}
.ring_heart {
    background: rgba(255, 178, 220, 0.8);
    position: absolute;
    border-radius: 100px;
    width: 30px;
    height: 30px;
    top: -1px;
    left: 6px;
    opacity: 0;
}
@keyframes pulsate {
    0%   { transform: scale(0); }
    50%  { opacity: 1;transform: scale(0.8); }
    100% { transform: scale(1.4); opacity: 0; }
}
.comment_button:hover {
    color: #2623fa !important;
    text-shadow: 0 0 4px #c7f8ff;
}
.ph-chat-slash {
    color: #2623fa !important;
}

@media (max-width: 1000px) {
    .close_button {
        top: 0;
        font-size: 2.5rem;
    }
    #product {
        margin: 2px var(--margin-rf) 0 var(--margin-rf);
        height: calc(100% - 41px);
    }
    #product .content {
        margin: 0;
    }
    #product h1 {
        font-size: 1.1em;
    }
    .ring_heart {
        left: 0px;
    }
    #product h1 {
        overflow-x: scroll;
        overflow-y: hidden;
        width: 100%;
        white-space: pre;
    }
    .product_content_container {
        height: calc(100% - 7em);
    }
    .bottom_content {
        flex-direction: column;
        margin-top: 0.5em;
    }
    .post_info h4, .post_info p, .count_content p {
        margin: 0;
    }
    .post_info h4 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        overflow: hidden;
    }
    .product_actions small {
        font-size: 8px;
    }
    .product_actions button {
        height: 38px;
    }
    #product .vertical_text {
        line-height: 20px;
    }
}
