﻿

.col-search-wrapper {
  background-color: rgba(237, 241, 245, 0.64);
  border-radius: 12px;
  margin: 0 8px 40px;
  max-width: 1160px;
  overflow: hidden; 
}
.col-search-toggle.accordion-toggle {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px ;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #334155;
  cursor: pointer;
  outline: none;
}

.col-search-toggle.is-open .accordion-arrow {
  transform: rotate(180deg);
}
.accordion-arrow {
  transition: transform 0.3s ease;
}

.col-search-content.accordion-content {
  background-color: #f1f4f8;
  max-height: 0; 
}
.col-search-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}

.accordion-content .col-search-link {
  flex-wrap: wrap;
  padding: 4px 16px;
  background-color: #f1f4f8;
  border-radius: 90px;
  border: 1px solid #AFC2D6;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  height: auto;
}
.accordion-content .col-search-link::before{
  content: none;
}
.col-search-link.is-selected {
  background-color: #004AA6;
  color: #fff;
}
.col-search-hash { color: #334155; margin-right: 2px; }
.col-search-link.is-selected .col-search-hash { color: #fff; }


.col-search-term{
  margin: 0 auto 40px;
  max-width: 1160px;
}
.col-search-term__title{
   text-align: left;
    font-weight: bold;
    font-size: 20px;
    position: relative;
    color: #004AA6;
}
.col-search-term__title::before {
    content: "●カテゴリー";
    font-size: 12px;
    line-height: 1;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    color: #004AA6;
}

@media screen and (min-width: 769px) {
  .single-column .section{
    padding-top: 24px;
  }
  .col-search-wrapper {
    padding: 24px;
    margin: 0 auto 64px;
  }
  .col-search-container {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .col-search-toggle.accordion-toggle {
    width: auto;
    height: 40px;
    padding: 0 24px 0 0;
    border-right: 1px solid #CBD5E1;
    border-bottom: none;
    cursor: default;
    pointer-events: none;
    flex-shrink: 0;
  }
  .col-search-toggle .accordion-arrow {
    display: none;
  }
  .col-search-items{
    padding: 0;
  }
  .col-search-content.accordion-content{
    max-height:100%;
    padding: 0;
  }

  .col-search-term__title{
    font-size: 30px;
  }
 .col-search-term__title::before {
    font-size: 14px;
  }
}

.column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 8px;
}

.column-card{
  background: #fff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0px 0px 16px 0 rgba(0, 0, 0, 0.12);
}

.column-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
}

.column-card__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.column-card__body {
  padding: 24px;
}

.column-card__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.column-card__date{
  font-size: 12px;
  font-weight: 700;
  color: #64758B;
}
.column-card__cat-list{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.column-card__cat {
  font-size: 12px;
  font-weight: 700;
  color: #004AA6;
}

.column-card__title {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 700;
  color: #1E293B;
}

@media screen and (min-width: 768px) {
  .column-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0;
  }

  .column-card:hover {
    background-color: #F9FBFF;
    box-shadow: none;
  }
}


/* =================================================================
   詳細ページ
================================================================== */
.column-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 8px;
}
.column-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  .column-btn-link{
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #1E293B;
    path{
      fill: #64758B;
    }
  }

}
.column-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.7;
  color: #1E293B;
}
.column-featured-img {
  margin-bottom: 32px;
}
.column-featured-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.column-body{
  .column-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 32px;
  }
  .column-date {
    font-size: 14px;
    font-weight: 400;
    color: #64758B;
  }
  .column-tags {
    font-size: 14px;
    font-weight: 400;
    color: #004AA6;
  }
}
.column-entry-body{
  p{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #334155;
    a{
      color: var(--color-primary);
      text-decoration: underline;
      word-break: break-all;
    }
  }
  h3.wp-block-heading{
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.7;
    margin-top: 100px;
    margin-bottom: 24px;
  }
  h4.wp-block-heading{
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .wp-block-image{
    margin-bottom: 40px;
  }
  .wp-block-image img{
    border-radius: 12px;
    max-width: 800px;
  }
  .wp-block-list{
    margin-bottom: 16px;
  }
  .wp-block-list li{
    font-size: 14px;
    font-weight: 400;
    color: #1E293B;
    line-height: 1.7;
    margin-bottom: 4px;
    padding-left: 1em;
    position: relative;
    a{
      color: var(--color-primary);
      text-decoration: underline;
      word-break: break-all;
    }
  }
  ul.wp-block-list > li::before{
    content: "・";
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
  }
  ol.wp-block-list {
    counter-reset: ol_number;
    margin-bottom: 30px
  }

  ol.wp-block-list:last-child {
      margin-bottom: 0
  }

  ol.wp-block-list > li {
      padding-left: 20px;
      position: relative;
      margin-bottom: 5px
  }

  ol.wp-block-list > li:last-child {
      margin-bottom: 0
  }
  ol.wp-block-list > li::before {
    content: counter(ol_number) ".";
    counter-increment: ol_number;
    position: absolute;
    top: 0;
    left: 0
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
  }
  th,
  td {
      padding: 16px;
      border: 1px solid #CBD5E1;
      text-align: left;
      color: #1E293B;
      font-size: 14px;
      font-weight: 400;
      a{
      color: var(--color-primary);
      text-decoration: underline;
      word-break: break-all;
    }
  }
  th {
      font-weight: 700;
      color: #1E293B;
  }
}
.column-pagination {
  margin-top: 60px;
  border-top: 1px solid #CBD5E1;
  padding-top: 40px;
}
.column-pagination__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.column-pagination__item {
  display: flex;
  align-items: center;
}

.column-pagination__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  transition: opacity 0.3s ease;
}
.column-pagination__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
}
.-prev .column-pagination__icon { margin-left: 12px; }
.-next .column-pagination__icon { margin-right: 12px; }
.-prev .column-pagination__icon svg{ transform: rotate(180deg);}
.u-pc-only {
  display: none;
}
@media screen and (max-width: 768px) {
.column-pagination__item.-archive:after,.column-pagination__item.-archive::before {
  content: "";
  display: block;
  width: 1px;
  height: 23px;
  background-color: #CBD5E1;
  margin: 0 20px;
}
.column-pagination__item.-next,.column-pagination__item.-prev{
  min-width: 100px;
}
}
@media screen and (min-width: 769px) {
  .u-pc-only {
    display: inline;
  }
  .u-sp-only {
    display: none;
  }
  .column-body{
    .column-meta {
      margin-bottom: 10px;
    }
    .column-date {
      font-weight: 700;
    }
    .column-tags {
      font-weight: 700;
    }
  }
  .column-pagination__link {
    font-size: 16px;
  }
}
@media screen and (min-width: 769px) {
  .column-detail {
    padding: 0;
  }
  .column-header {
    margin-bottom: 30px;
    padding: 0;
    .column-btn-link{
      font-size: 16px;
      transition: color 0.3s ease;
    }
  }
  .column-title {
    font-size: 32px;
    margin-bottom: 56px;
  }
  .column-featured-img {
    margin-bottom: 40px;
  }
  
  .column-entry-body{
    p{
      font-size: 16px;
      margin-bottom: 24px;
      a{
        transition: all 0.3s ease;
        &:hover{
          opacity: .7;
        }
      }
    }
    h3.wp-block-heading{
      font-size: 24px;
      margin-top: 64px;

    }
    h4.wp-block-heading{
      font-size: 20px;
    }
    .wp-block-button__link{
      transition: background-color .3s ease;
    }
    .wp-block-button__link:hover{
      color: #ffffff;
      background-color: #003b85!important;
    }
    .wp-block-list li{
      font-size: 16px;
      a{
        transition: all 0.3s ease;
        &:hover{
          opacity: .7;
        }
      }
    }
    table {
      font-size: 16px;
    }
    th,
    td {
        font-size: 16px;
        a{
        transition: all 0.3s ease;
        &:hover{
          opacity: .7;
        }
      }
    }
  }
  .column-btn-link:hover {
    color: #005bac;
  }
}
