@import"/css/common.css";

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    letter-spacing: 0;
    & a:link, & a:visited{
      color: #000;
    }
}

#pan{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
}

.search-box {
    background: #F2F2F2;
    padding: 20px;
    margin-bottom: 30px;
}

.search-label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    color: #000;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    max-width: 260px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 0;
}

.search-btn {
    padding: 10px 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #555;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0;
}

.search-tags .search-tag {
    color: #c4302b;
    text-decoration: underline !important;
    &:not(:last-of-type) {
        position: relative;
        padding-right: 10px;
        &:after{
            position: absolute;
            top: 0;
            right: 0;
            content: '|';
        }
    }
    &:link, &:visited{
      color: #911818;
    }
}

.search-tag:hover {
    opacity: 0.7;
}

.cat-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.cat-item {
    background: white;
    padding: 0 50px 10px 0;
    font-size: 15px;
    font-weight: normal;
    transition: all 0.2s;
    position: relative;
    border-bottom: 1px solid #911818;
    line-height: 1.4;
    &:link{
      color: #000;
    }
    &:hover{
      opacity: 0.7;
      text-decoration: none;
    }
}

.cat-item.current {
    background: #E9E9DB;
    border-bottom: 2px solid #911818;
}

.cat-item::after {
    display: flex;
    justify-content: center;
    align-items: center;
    content: '▼';
    position: absolute;
    right: 15px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #911818;
    color: #fff;
    font-size: 8px;
    line-height: 1;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-related-title{
  margin-bottom: 5px;
  padding-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #911818;
}

.faq-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 15px;
    color: #333;
    background-color: #E9E9DB;
    border: 1px solid #B9B9A5;
}

.faq-list {
    padding-left: 0;
    list-style: none;
}

.faq-item {
    border-bottom: 1px dashed #999;
    line-height: 1.7;
    & a{
      position: relative;
      display: block;
      padding: 15px 0 15px 43px;
      font-size: 16px;
      font-weight: normal;
      &:link{
        color: #000;
      }
      &:before{
        content: 'Q';
        position: absolute;
        left: 5px;
        top: 5px;
        color: #c4302b;
        font-size: 28px;
        font-weight: bold;
        font-family: arial;
      }
      &:hover{
        text-decoration: underline;
        opacity: 0.7;
      }
    }
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.faq-link:hover {
    color: #c4302b;
}

.more-btn {
    text-align: right;
    margin-top: 15px;
}

.more-btn .more-link {
    color: #c4302b;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
    &:link, &:visited{
      color: #911818;
    }
}

.more-link:hover {
    opacity: 0.7;
}

.faq-detail-title{
  position: relative;
  margin-bottom: 10px;
  padding: 15px 0 15px 40px;
  border-top: 2px solid #911818;
  border-bottom: 2px solid #911818;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  &:before{
    content: 'Q';
    position: absolute;
    left: 10px;
    top: 11px;
    color: #911818;
    font-size: 26px;
    font-family: arial;
  }
}

.faq-tags-link{
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-bottom: 30px;
  & a{
    color: #911818;
    font-size: 13px;
    text-decoration: underline;
    &:link, &:visited{
      color: #911818;
    }
    &:hover{
      opacity: 0.7;
    }
  }
}

.entry-box{
  margin-bottom: 40px;
  padding: 15px;
  border: 6px solid #EBEBE1;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 16px,
    rgba(0, 0, 0, 0.05) 16px,
    rgba(0, 0, 0, 0.05) 17px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 16px,
    rgba(0, 0, 0, 0.05) 16px,
    rgba(0, 0, 0, 0.05) 17px
  );
  line-height: 1.8;
  & p{
    padding-bottom: 10px;
    font-size: 16px;
  }
  & ul{
    padding-left: 20px;
    & li{
      padding-bottom: 5px;
      font-size: 16px;
    }
  }
}

.tag-area{
  margin: -25px 0 60px;
  & dl{
    display: flex;
    gap: 5px;
    & dt{
      width: 45px;
      font-size: 13px;
      font-weight: bold;
    }
    & dd{
      width: calc(100% - 45px);
      margin: 0;
      & ul{
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        padding: 0;
        & li{
          list-style: none;
          & a{
            display: block;
            color: #911818;
            font-size: 13px;
            &:link, &:visited{
              color: #911818;
              text-decoration: underline;
            }
            &:hover{
              opacity: 0.7;
            }
          }
        }
      }
    }
  }
}

/* ページネーション */
.pager {
    text-align: center;
    margin: 30px 0;
}

.pager ul {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pager li {
    margin: 0;
}

.pager a,
.pager span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    background: white;
    min-width: 40px;
    text-align: center;
}

.pager a:hover {
    background: #f5f5f5;
}

.pager .current {
    background: #911818;
    color: white;
    border-color: #911818;
}

.pager .prev a,
.pager .next a {
    background: #666;
    color: white;
    border-color: #666;
}

.pager .prev a:hover,
.pager .next a:hover {
    background: #555;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .faq-detail-title{
      padding: 14px 0 14px 32px;
      font-size: 17px;
      &:before{
        left: 5px;
        top: 9px;
        font-size: 24px;
      }
    }

    .search-box {
        margin-bottom: 15px;
        padding: 15px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 16px;
    }

    .search-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-input-wrap{
      flex-wrap: wrap;
    }

    .search-label{
      width: 100%;
      text-align: center;
    }

    .cat-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 30px;
    }

    .cat-item {
        padding: 12px 33px 12px 3px;
        font-size: 13px;
        text-align: left;
    }

    .cat-item::after {
        top: 12px;
        right: 8px;
        width: 18px;
        height: 18px;
        font-size: 7px;
    }

    .search-tags {
        justify-content: flex-start;
        max-height: 23px;
        overflow-y: hidden;
        font-size: 12px;
    }

    .faq-title {
        font-size: 16px;
    }

    .faq-link {
        font-size: 13px;
        line-height: 1.7;
    }

    .faq-item {
      & a{
        padding-left: 40px;
        font-size: 16px;
        &:before{
          top: 5px;
          font-size: 28px;
        }
      }
    }

    .entry-box{
      padding: 20px;
    }

    .pager ul {
        gap: 3px;
    }

    .pager a,
    .pager span {
        padding: 6px 8px;
        min-width: 35px;
        font-size: 14px;
    }
}
