/* ==============================================
  common
============================================== */

img {
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
}

a {
  transition: .3s;
  text-decoration: none;
  color: inherit;
}

a:hover {
  opacity: .8;
}

ul {
    list-style: none;
}

.separator-line {
    border-style: none;
    border-bottom: #89c997 solid 2px !important;
    opacity: 1 !important;
    margin: 0.5rem 0;
}

.word-break-all {
    word-break: break-all;
}

/* --------- sidemenu --------- */
.sidemenu {
    border-right: #89c997 solid 2px !important;
}

.sidemenu .sidemenu-title-icon {
    height: calc(1.275rem + 0.3vw);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.sidemenu .sidemenu-title {
    font-size: calc(1.275rem + 0.3vw)
}

.sidemenu .sidemenu-category-title {
    display: flex;
    align-items: start;
    word-break: break-all;
}

.sidemenu .sidemenu-category-title img {
    margin-top: 0.4rem;
}

.sidemenu .category-link {
    display: flex;
    align-items: start;
}

.sidemenu .category-link span {
    margin-left: 0.7rem;
}

.sidemenu .category-icon {
    height: 1rem;
    margin-top: 0.3rem;
}

.sidemenu .category-name, .sidemenu .side-article-title {
    color:rgb(34, 34, 34);
    word-break: break-all;
}

@media screen and (max-width: 1024px) {

    .sidemenu .sidemenu-title-icon {
        height: 1.15rem;
    }

    .sidemenu .sidemenu-title {
        font-size: 1.15rem;
    }
}

@media screen and (max-width: 599px) {

    .sidemenu {
        display: none;
    }

}

@media screen and (max-width: 320px) {

    img {
        width: 100%;
        max-width: 100%;
    }
}

/* ==============================================
  header
============================================== */
/* --------- header --------- */

header {
    position: sticky;
    z-index: 999;
    top: 0;
    width: 100%;
    background: #ffffff;
}

.user-icon {
    width: 24px;
}

.dropstart .dropdown-menu[data-bs-popper] {
    top: 100%;
    width: max-content;
}

@media screen and (max-width: 1024px) {

    .dropstart .dropdown-menu[data-bs-popper] {
        max-width: 500px;
    }
}

@media screen and (max-width: 599px) {

    .user-icon {
        width: 18px;
    }

    .user-info p {
        font-size: 2vw;
    }

    .dropstart .dropdown-menu[data-bs-popper] {
        max-width: 300px;
    }

}

@media screen and (max-width: 320px) {

    .user-icon {
        width: 14px;
    }

    .dropstart .dropdown-menu[data-bs-popper] {
        max-width: 250px;
    }

}

/* ---------top-header --------- */

.top-header .main-logo {
    width: 500px;
}

.top-header .user-info {
    position: absolute;
    right: 0;
}

@media screen and (max-width: 599px) {

    .top-header .main-logo {
        width: calc(100% - 30px);
    }

}

/* ---------common-header --------- */

.common-header {
    border-bottom: solid 2px;
}

.common-header .main-logo {
    width: 370px;
}

.common-header .user-info {
    margin: 0 0 0 auto;
}

@media screen and (max-width: 599px) {

    .common-header .main-logo {
        width: 220px;
    }

    .common-header .user-info {
        position: absolute;
        right: 0;
    }

}

/* ==============================================
  footer
============================================== */

.footer-logo{
    height: 30px;
}

@media screen and (min-width: 600px){

    .copyright {
        text-align: right;
    }

}

@media screen and (max-width: 599px) {

    .contact_info, .copyright {
        font-size: 11px;
    }

    .footer-logo {
        width: 50%;
    }

}

@media screen and (max-width: 320px) {

    .footer-logo {
        height: 20px;
        width: 48%;
    }

}

/* ==============================================
  top page
============================================== */
/* --------- search --------- */

.section-search {
    padding: 30px 0;
}

.section-search input {
    height: 50px;
}

.green-border {
    border-color:#89c997;
}

.green-btn {
    padding: 6px 12px;;
    border-radius: 13px;
    color: #ffffff;
    background-color: #89c997;
    border: 0px;
}

.green-btn:hover {
    color: #ffffff;
    background-color: #bee0c2;

}

/* sp */

@media screen and (max-width: 599px) {

    .section-search {
        padding: 5% 0;
    }

}

/* --------- top questions --------- */

.section-top-questions {
    background-color: #f0f6da;
    z-index: 0;
}

.section-top-questions ul {
    margin-bottom: 0;
    padding: 0;
}

.list-top-questions li {
    display: inline-block;
    text-align: left;
    margin-bottom: 3px;
    padding: 10px 0.5rem 10px 2rem;
    text-indent: -1.5rem;
    width: 100%;
    color: #000000;
    background: #ffffff;
    border: solid 2px #6b6866;
    border-radius: 3px;
}

.list-top-questions li > a::before{
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-image: url(../img/circle-question-regular.svg);
    background-size: contain;
    vertical-align: middle;
}

/* sp */

@media screen and (max-width: 599px) {

    .list-top-questions li {
      padding: 7px 0.5rem 7px 2rem;
      width: 100%;
      font-size: 90%;
    }

}

/* --------- category --------- */

.section-category{
    background: #89c997;
    z-index: 0;
}

.section-category h2 {
    color: #ffffff;
}

.list-category {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.list-category li {
    font-size: medium;
    width: 30%;
    height: 60px;
    margin: 10px 7px;
    background: #ffffff;
    border-radius: 6px;
    position: relative;
}

.list-category li a p {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    text-align: center;
    transform : translateY(-50%);
    padding: 15px;
}

.empty {
    visibility: hidden;
}

@media screen and (max-width: 1024px) {

    .section-category .col-md-10 {
        width: 100%;
    }

    .list-category li {
        font-size: 90%;
    }

    .list-category li a p {
        padding: 0;
    }
}

/* sp */

@media screen and (max-width: 599px) {

    .list-category li {
      width: 45%;
      height: calc(60px * 0.9);
      font-size: 80%;
      margin: 7px 5px;
    }

}

/* ==============================================
  login page
============================================== */

body,
.login,
.login > .row {
    min-height: 100vh;
}

input#keyword {
    height: 50px;
}

.search-result {
    background-color: #f0f6da;
}

.article-title {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
    font-size: 1rem;
    font-weight: bold;
    word-break: break-all;
}

.article-title > a::before{
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    background-image: url(../img/circle-question-regular.svg);
    background-size: contain;
    vertical-align: middle;
}

.article-title .highlight {
    background-color: yellow;
}

.article-category {
    margin-left: 1.5rem;
    font-size: 0.8rem;
    word-break: break-all;
    display: block;
}


/* ==============================================
  Categoty page
============================================== */

.main-category-icon {
    height: 1.8rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    width: 1.8rem;
}

.main-category-name {
    padding-left: 2.3rem;
    text-indent: -2.3rem;
}

.current {
    font-weight: bold;
    background: #f0f6da;
    border-radius: 5px;
}

.current .category-name, .current .side-article-title {
    color: #79c06e;
}

.current img, .current .side-article-title > a::before {
    filter: opacity(0.35) drop-shadow(0 0 0 #79c06e);
}

/* sp */

@media screen and (max-width: 599px) {

    .article-list .article-title {
        padding: 0.8rem 0;
    }

}

.pc-pagination {
    display: block;
}

.tb-pagination {
    display: none;
}

.sp-pagination {
    display: none;
}

@media screen and (max-width: 1024px) {

    .pc-pagination {
        display: none;
    }

    .tb-pagination {
        display: block;
    }

    .sp-pagination {
        display: none;
    }
}

@media screen and (max-width: 599px) {

    .pc-pagination {
        display: none;
    }

    .tb-pagination {
        display: none;
    }

    .sp-pagination {
        display: block;
    }
}


/* ==============================================
  Article page
============================================== */

.main-article-title {
    background-color: #f0f6da;
    word-wrap: break-word;
}

.main-article-title > h3 {
    position: relative;
    padding: 0 0 0 1.8rem;
}

.main-article-title > h3::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    content:url(../img/circle-question-regular.svg);
}

.side-article-title {
    padding-left: 1.2rem;
    text-indent: -1.2rem;
    word-wrap:break-word;
}

.side-article-title > a::before{
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.2rem;
    background-image: url(../img/circle-question-regular.svg);
    background-size: contain;
    vertical-align: middle;
}

.article-contents a {
    word-wrap:break-word;
}

.article-contents {
    word-wrap:break-word;
}
