/* ===================================
   試験案内タクソノミーページ用CSS
   =================================== */

/* アーカイブレイアウト */
.l-archive--test-taxonomy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* メインコンテナ */
.c-testTaxonomy__inner {
  width: 100%;
}

.c-testTaxonomy__main {
  width: 100%;
  background: white;
}

.c-testTaxonomy__content {
  margin-top: 0;
}

/* 説明テキスト */
.c-testTaxonomy__description {
  padding: 15px;
  background-color: #e6f7ff;
  border-left: 4px solid var(--ark-color--main);
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.6;
}

/* 目次ナビゲーション */
.c-testTaxonomy__toc {
    margin-bottom: 3rem;
}

.c-testTaxonomy__tocNav {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.c-testTaxonomy__tocList {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.c-tocNav__item {
    margin: 0;
}

.c-tocNav__item--hidden {
    display: none;
}

.c-tocNav__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.c-tocNav__link:hover,
.c-tocNav__link.is-active {
    background: var(--ark-color--main);
    color: #fff;
    border-color: var(--ark-color--main);
    text-decoration: none;
}

.c-tocNav__toggleBtn {
    background: var(--ark-color--main);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.c-tocNav__toggleBtn:hover {
    transform: translateY(-1px);
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* タームセクション */
.c-testTaxonomy__sections {
    margin-top: 2rem;
}

.c-testTaxonomy__termSection {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem; /* アンカージャンプ時の余白 */
}

.c-termTitle {
    position: relative;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 2rem 0;
    padding: 1rem 0 1rem 1.5rem;
    background: #f8f8f8;
    border-left: 6px solid var(--ark-color--main);
    border-radius: 0 8px 8px 0;
}

.c-termTitle__description {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    color: #666;
    margin-top: 0.5rem;
}

/* 投稿リスト */
.c-postsList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-postsList__item {
    border-bottom: 1px solid #e0e0e0;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.c-postsList__item:nth-child(odd) {
    background-color: #f8f8f8;
}

.c-postsList__item:nth-child(even) {
    background-color: white;
}

.c-postsList__item::before {
    content: "●";
    color: var(--ark-color--main);
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.c-postsList__link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.c-postsList__link:hover {
    background-color: var(--ark-color--main);
    color: white;
    text-decoration: none;
}

/* 空の状態 */
.c-testTaxonomy__empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 1rem 0;
}

.c-testTaxonomy__noTerms {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .c-testTaxonomy {
        padding: 0 10px;
    }

    .c-tocNav__list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .c-tocNav__link {
        display: block;
        text-align: center;
    }

    .c-termTitle {
        font-size: 1.3rem;
        padding: 1rem 0 1rem 1rem;
    }

    .c-testTaxonomy__termSection {
        margin-bottom: 3rem;
    }

    .c-postsList__link {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* 試験案内カスタムブロックのSP padding調整 */
    .wp-block-kitasato-standard-law-block .c-columnList__column {
        padding: 0 !important;
    }
}