@charset "UTF-8";
/* style2.css */

/* 閉じるボタンの配置基準とするため relative を付与 */
.topics {
    position: relative; 
}

/* 閉じるボタンのデザイン */
.topics-close-btn {
    position: absolute;
    top: -15px;      /* topics枠からの上部位置調整 */
    right: -15px;    /* topics枠からの右側位置調整 */
    width: 30px;
    height: 30px;
    background-color: #515146; /* 既存のボタン等に使われている色 */
    color: #fefefe;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

/* ホバー時の色変化 */
.topics-close-btn:hover {
    background-color: #121515;
}

/* スマホ閲覧時等の位置・サイズ微調整 */
@media screen and (max-width: 834px) {
    .topics-close-btn {
        top: -10px;
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}
