/*----------------------------
  コラムTOPページ、カテゴリー別一覧ページ
  ----------------------------*/

.index .view-7 {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 51px;
  margin-top: 56px;
}
.index .topics-item-area{
  overflow: hidden;
  width:100%;
}
.topics-item-area .topics-category-wrap {
  width:100%;
  position:relative
}
.topics_category_list + * {
  margin-top:56px;
}
.topics_category_list .sub_title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width:100%;
  margin-bottom:32px;
}

.index .topics_list_wrap.d-grid-wrap {
  grid-template-columns: repeat(3, minmax(380px, 1fr));
  gap:30px;
}

.index .topics-category-wrap .topics_category_list.is-hidden {
  visibility: hidden;
  opacity: 0;
  height: 0;
  margin: 0 10px;
  padding: 0;
}
.index .topics-category-wrap .topics-item{
  padding:0;
  padding-inline:0;
}

.topics-item.is-hidden {
  display: none;
}

.topics_list_wrap.type-item-alist .topics-item {
  min-width: 0;
}

.topics_list_wrap.type-item-alist .topics-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  line-height: 1.5;
  height: 100%;
}


@media (min-width:1280px){

}
@media (max-width:1024px){

.index .text-76 {
  padding-inline: 80px;
}

}
@media (max-width:768px){
  .index .text-76 {
    padding-inline: 40px;
  }
  .index .topics_list_wrap.d-grid-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .topics_list_wrap.type-item-alist .topics-item {
    min-width: 0;
  }
  .topics_list_wrap.type-item-alist .topics-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    line-height: 1.5;
  }
}
@media (max-width:599px){
  .index .topics_list_wrap.d-grid-wrap {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*----------------------------
  詳細ページ
  ----------------------------*/

  .topics-detail-area .topics-detail-wrap {
    width:100%;
    position:relative;
    display:flex;
    gap:min(6.8%,82px);
  }
  .topics-detail-area h1 {
    text-wrap: wrap;
  }
  .topics-detail-wrap .topics-detail-aside {
    width:min(27.5%,330px);
    flex-shrink: 0;
  }
  .topics-detail-wrap .topics-detail-article {
    flex:1;
    width:min(65.75%,789px);
  }
  .topics-detail-header {
    padding-bottom:25px;
    border-bottom:var(--flush-orange) 4px solid;
    margin-bottom:40px;
  }
  .topics-detail-header .topic-item-header {
    margin-top:0;
    padding-inline:0;
    padding-bottom:40px;
  }
  .topics-detail-header h1 {
    color: #2D2F31;
    font-family:var(--font-family-noto_sans_jp);
    font-size: 36px;
    font-weight: 500;
    line-height: 144%;
    letter-spacing: 1.44px;
  }
  @media (max-width:599px){
    .topics-detail-header h1 {
      letter-spacing: 0.5px;
    }
  }
  .topics-detail-header .topics-tag-wrap {
    margin-inline:0;
    gap:8px;
  }
  .label-pr {
    width:fit-content;
    height: 24px;
    flex-shrink: 0;
    padding:0 6px;
    border: 1px solid #000;
    color: #000;
    text-align: center;
    font-family: var(--font-family-noto_sans_jp);
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: normal;
    margin-right:10px;
  }
.label-pr .text{
    line-height: 24px;
}

  .topics-detail-contents > figure:first-child{
    margin-bottom:60px;
  }
  .topics-detail-contents figure figcaption {
    color: #2D2F31;
    font-family: var(--font-family-noto_sans_jp);
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 180%;
    margin-top:1em;
  }
  .topics-detail-contents h2 {
    font-family: var(--font-family-noto_sans_jp);
    color: #2D2F31;
    font-size:30px;
    font-weight: 500;
    line-height: 160%;
    position:relative;
    padding-bottom:20px;
    border-bottom:4px dotted var(--flush-orange);
  }
  .topics-detail-contents h3 {
    font-family: var(--font-family-noto_sans_jp);
    color: var(--flush-orange);
    font-size: var(--font-size-xxxxl);
    font-weight: 500;
    line-height: 160%;
    position:relative;
    border-left:4px solid var(--flush-orange);
    padding-left:10px;
  }
  .topics-detail-contents h4 {
    font-family: var(--font-family-noto_sans_jp);
    color: #2D2F31;
    font-size: var(--font-size-xl);
    font-weight: 500;
    line-height: 160%;
    position:relative;
    padding-left:1em;
  }
  .topics-detail-contents h4:before {
    content:"";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2D2F31;
    position:absolute;
    left:0;
    top:0.75em;
  }
  .topics-detail-contents p {
    color: #2D2F31;
    font-family: var(--font-family-noto_sans_jp);
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 180%;
  }
  .topics-detail-contents ol {
    list-style: decimal;
    padding-left:1em;
  }
  .topics-detail-contents ol li {
    line-height: 180%;
    color: #2D2F31;
  }
  .topics-detail-contents .box {
    padding:20px;
    border:2px solid #FFD9B0;
  }
  .topics-detail-contents > * + *{
    margin-top:1.5em;
  }
  .topics-detail-contents > figure:first-child + h2 {
    margin-top:0;
  }

.topics-pager-wrap {
  margin-top:100px;
}
.topics-pager-wrap .pager {
  display: flex;
  justify-content: center;
  gap:30px;
  align-items: center;
}
.topics-pager-wrap .pager a {
  display: flex;
  gap:5px;
  align-items: center;
  transition:all .3s ease-out;
  color:#2D2F31;
}
.topics-pager-wrap .pager svg path{
  transition:all .3s ease-out;
}
.topics-pager-wrap .pager a:hover {
  color:var(--flush-orange);
}
.topics-pager-wrap .pager a:hover svg path {
    stroke:var(--flush-orange);
}

.topics-relations-wrap {
  margin-top:100px;
}
.topics-relations-wrap h3.bar {
  margin-bottom:32px;
}
.index .topics-relations-wrap .topics_list_wrap {
  grid-template-columns: repeat(2, 1fr);
  gap:30px;
}
.index .topics-relations-wrap .topics_list_wrap .topics-item {
  padding:0;
  width:calc(100% - 15px);
}

.topics-detail-aside .category-nav-box h3{
  border-bottom: 1px var(--D9D9D9, #D9D9D9) solid;
  border-color: var(--D9D9D9, #D9D9D9);
  width:100%;
  padding-bottom:8px;
  color: #2D2F31;
font-family: Lexend;
font-size: var(--font-size-xxxxl);
font-style: normal;
font-weight: 400;
line-height: 180%; /* 36px */

}
.topics-detail-aside .category-nav ul {
  padding:14px 4px;
  display: flex;
  flex-direction: column;
  gap:10px;
}
.topics-detail-aside .category-nav ul li{
  position:relative;
  display: flex;
  align-items: center;
  gap:10px;
}
.topics-detail-aside .category-nav ul li:before {
    content:"";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--flush-orange);
}
.topics-detail-aside .category-nav ul li a {
  color: #2D2F31;
font-family: var(--font-family-noto_sans_jp);
font-size: var(--font-size-l);
font-style: normal;
font-weight: 400;
line-height: 160%; /* 22.4px */
}
.topics-detail-aside .category-nav-box + .category-nav-box{
  margin-top:10px;
}

@media (max-width:1024px){
  .topics-detail-area .topics-detail-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .topics-detail-area .topics-detail-wrap > * {
    width:100%;
  }
  .index .topics-relations-wrap .topics_list_wrap {
    grid-template-columns: repeat(2, 1fr);
    gap:20px;
  }
}


@media (max-width:599px){
  .index .topics-relations-wrap .topics_list_wrap {
    grid-template-columns: repeat(1, 1fr);
    gap:20px;
  }
  .index .topics-relations-wrap .topics_list_wrap .topics-item {
    width:100%;
  }
  .topics-detail-header h1 {
    font-size: 24px;
    width:100%;
  }
  .topics-detail-contents h2 {
    width:100%;
    font-size: 22px;
  }
  .topics-detail-contents h3 {
    width:100%;
    font-size: 20px;
  }
  .topics-detail-contents h4 {
    width:100%;
    font-size: 18px;
  }
}

/* カテゴリ記事一覧ボタン */
.topics-category-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 32px;
}

a.btn_category_more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--flush-orange) 0%, #ff8a56 100%);
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 132, 78, 0.3);
}

a.btn_category_more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 132, 78, 0.4);
}

a.btn_category_more span {
  color: white;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

a.btn_category_more .arw {
  width: 16px;
  height: 16px;
  stroke: white;
  transition: transform 0.3s ease;
}

a.btn_category_more:hover .arw {
  transform: translateX(4px);
}

.sp_btn_category_more_area {
  text-align: center;
  margin-top: 56px;
}
