/* main.css */

:root {
    --primary-color: #00bcd4;
    --primary-theme-color: #398DC5;
    --text-color: #333;
    --background-color: #fff;
    --border-color: #e0e0e0;
    --footer-menu-bg: #f8f8f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.plats {
    max-width: 1200px;
    margin: auto;
  }
  .button__new-piece {
    color: #fff;
    /*background-color: #32373c;*/
    background-color: var(--primary-theme-color);
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
    width: 100%;
    margin: 0;
    border: 0;
    font-weight: bold;
    -webkit-transition: all .18s linear, width 0s;
    -o-transition: all .18s linear, width 0s;
    transition: all .18s linear, width 0s;
    position: sticky;
    top: 120px;
  }
  .button__new-piece:hover {
    background-color: #1da1f2;
  }

  /* プロフィールボタン */
  .profile-button {
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    font-size: 1.125em;
    font-weight: 100;
    width: 100%;
    overflow: hidden;
    position: absolute;
    bottom: 50px;
}

.profile-button__link {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    text-decoration: none;
    height: 55px;
    padding: 0px 4px;
}

.profile-button__image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.profile-button__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.profile-button__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    flex-shrink: 1;
    width: calc(100% - 66px);
}

.profile-button__name {
    line-height: 1;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary-color);
}

.profile-button__id {
    padding: 0;
    margin: 0;
    font-size: .85em;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--secondary-color);
}

.profile-button__link:hover {
    background-color: var(--link-hover-bg-color);
}


.sns {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.sns__sidebar {
    padding: 1rem;
}

.sns__sidebar--left {
    flex-basis: 25%;
    border-right: 1px solid var(--border-color);
    max-width: 320px;
}

.sns__sidebar--left-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5%;
    height: calc(100vh - 136px);
    position: sticky;
    top: 136px;
}

.sns__sidebar--right {
    flex-basis: 30%;
    border-left: 1px solid var(--border-color);
    max-width: 330px;
}

.sns__main {
    flex-grow: 1;
    max-width: 600px;
    padding: 1rem;
}

.sns__button {
    display: block;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sns__footer-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /*background-color: var(--primary-theme-color);*/
    background-color: #398dbee6;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sns__footer-menu-button {
    flex: 1;
    padding: 5px;
    /*background-color: var(--primary-theme-color);*/
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.sns__footer-menu-button::before {
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
}

.sns__footer-menu-button--timeline::before {
    content: '\f086';
}

.sns__footer-menu-button--profile::before {
    content: "\f007";
}

.sns__footer-menu-button--notifications::before {
    content: "\f0f3";
}

.sns__footer-menu-button--new-post {
    background-image: url(/wp/wp-content/plugins/kb_community_core/assets/images/icon_add_piece.svg);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.sns__footer-menu-button.sns__footer-menu-button--new-post {
    background-color: #398dbe;
    position: fixed;
    bottom: 60px;
    right: 10px;
    width: 62px;
    height: 62px;
    border-radius: 50px;
}


/* レスポンシブデザイン */

@media (max-width: 991px) {
    .sns {
        flex-direction: column;
    }
    .sns__sidebar--left,
    .sns__sidebar--right {
        flex-basis: auto;
        border: none;
        max-width: none;
    }
    .sns__main {
        max-width: 100%;
    }

    .sns__sidebar--left-wrap {
        height: auto;
    }

    .profile-button {
        display: none;
    }
}

@media (max-width: 767px) {
    .sns__sidebar--left {
        display: none;
    }
    .sns__footer-menu {
        display: flex;
        justify-content: space-around;
    }
}


/* dark-theme.css */


/* SKSサイドバー */

:root {
    --primary-color: #008ba3;
    --text-color: #ccc;
    --background-color: #222;
    --border-color: #444;
    --footer-menu-bg: #333;
}

.generalSectionTemplate_side {
    display: flex;
    flex-flow: column;
    gap: 10px;
}

.widgetContainer {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 16px;
}

.widgetContainer ul {
    list-style-type: none;
}

.widgetContainer_title {
    font-size: 20px;
    margin-bottom: 10px;
}

.recommended_content_item {
    margin-bottom: 10px;
}

.content-type {
    font-size: 12px !important;
    color: var(--border-color);
}

.content-body {
    font-weight: bold;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.content-body a {
    color: var(--text-color);
    text-decoration: navajowhite;
}

.content-body a:hover {
    text-decoration: underline;
    color: #000;
}

.content-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-label {
    font-size: 11px !important;
}


/* SKSサイドバー */