/* ========================================
   投稿・固定ページ 共通スタイル
   トモクル / generatepress-child
======================================== */

/* ========================================
   ページタイトルエリア
======================================== */
#tc-main {
    margin-top: 0;
    padding-top: 0;
}

.page-template-page-service .site-footer,
.page-template-page-case .site-footer,
.page-template-page-about .site-footer,
.archive .site-footer,
.page-template-page-privacy-policy .site-footer,
.single .site-footer,
.error404 .site-footer,
.page-template-page-contact .site-footer {
    display: none;
}

.tc-subpage-hero {
    position: relative;
    background: #bfe9fb;
    padding: calc(var(--header-h) + 120px) 0 76px;
    overflow: hidden;
}

.tc-subpage-hero__inner {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.tc-subpage-hero__title {
    margin: 0;
    text-align: center;
    color: #1a1a1a;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.tc-subpage-hero__dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tc-subpage-hero__dot--lg {
    width: 60px;
    height: 60px;
    right: calc(50% - 340px);
    top: 50%;
    transform: translateY(-80%);
    background: #ffe67d;
}

.tc-subpage-hero__dot--sm {
    width: 24px;
    height: 24px;
    right: calc(50% - 370px);
    top: 50%;
    transform: translateY(10%);
    background: #71d3f8;
}
.tc-single-hero .tc-subpage-hero__title {
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .tc-subpage-hero {
        padding-top: calc(var(--header-offset) + 120px);
    }
}

.tc-page-hero {
    background: #eef4fb;
    padding: 40px 0 32px;
    margin-top: 0;
    border-bottom: 1px solid #dce8f5;
}

@media (min-width: 769px) {
    .tc-page-hero {
        padding-top: calc(var(--header-offset) + 40px);
    }
}

.tc-page-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.tc-page-hero__title {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-navy);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* ========================================
   パンくず
======================================== */
.tc-subpage-breadcrumb-wrap {
    padding-left: 30px;
}

.tc-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #888;
}

.tc-breadcrumb__item + .tc-breadcrumb__item::before {
    content: '▶';
    font-size: 10px;
    margin-right: 4px;
    color: #bbb;
}

.tc-breadcrumb__item a {
    color: var(--color-navy);
    text-decoration: none;
}

.tc-breadcrumb__item a:hover {
    text-decoration: underline;
}

.tc-breadcrumb__item--current {
    color: #999;
}

/* ========================================
   コンテンツラッパー
======================================== */
.tc-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 48px 80px;
}

.tc-content-wrap__inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* 1カラム（固定ページ） */
.tc-content-wrap--single-col .tc-content-wrap__inner {
    display: block;
}

.tc-main {
    flex: 1;
    min-width: 0;
}

.tc-main--full {
    max-width: 860px;
    margin: 0 auto;
}

/* ========================================
   記事
======================================== */
.tc-article__thumbnail {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(29, 32, 136, 0.12);
}

.tc-article__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.tc-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tc-article__date {
    font-size: 13px;
    color: #888;
}

.tc-article__cat {
    display: inline-block;
    background: var(--color-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.tc-article__cat:hover {
    background: #2a30b5;
}

.tc-article__cat.category-trouble { background: #48a145; }
.tc-article__cat.category-recycling { background: #1b83da; }
.tc-article__cat.category-huyouhin-sorting { background: #42c5cf; }
.tc-article__cat.category-huyouhin-trouble { background: #fbbe3f; }
.tc-article__cat.category-kyoto-waste { background: #e85b8c; }
.tc-article__cat.category-moving { background: #ba4dca; }
.tc-article__cat.category-decluttering { background: #ff8e45; }
.tc-article__cat.category-fuyouhin-kaishu { background: #122b84; }

.tc-404-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 0 48px;
    text-align: center;
}

.tc-404-content h2 {
    margin: 0 0 20px;
    color: var(--color-navy);
    font-size: 28px;
}

.tc-404-content p {
    margin: 0 auto 28px;
    line-height: 1.8;
}

.tc-404-search {
    max-width: 460px;
    margin: 0 auto 28px;
    padding: 22px;
    background: #f5f8ff;
    border-radius: 8px;
}

.tc-404-search h3 {
    margin: 0 0 14px;
    color: var(--color-navy);
    font-size: 16px;
}

.tc-404-search .search-form {
    display: flex;
    gap: 6px;
    margin: 0;
}

.tc-404-search .search-field {
    min-width: 0;
    width: 100%;
    padding: 10px;
    border: 1px solid #dce8f5;
    border-radius: 4px;
}

.tc-404-search .search-submit {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--color-navy);
    color: #fff;
}

/* ========================================
   本文スタイル（Gutenbergブロック対応）
======================================== */
.tc-article__body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
}

.tc-article__body h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-navy);
    border-left: 4px solid var(--color-navy);
    padding: 6px 0 6px 16px;
    margin: 48px 0 20px;
    line-height: 1.4;
}

.tc-article__body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-navy);
    border-bottom: 2px solid var(--color-sky);
    padding-bottom: 6px;
    margin: 36px 0 16px;
}

.tc-article__body h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 28px 0 12px;
}

.tc-article__body p {
    margin: 0 0 20px;
}

.tc-article__body ul,
.tc-article__body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.tc-article__body li {
    margin-bottom: 8px;
}

.tc-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.tc-article__body a {
    color: var(--color-navy);
    text-decoration: underline;
}

.tc-article__body a:hover {
    opacity: 0.75;
}

.tc-article__body blockquote {
    border-left: 4px solid var(--color-sky);
    background: #f5faff;
    margin: 28px 0;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    color: #555;
    font-style: italic;
}

.tc-article--privacy .tc-article__body {
    font-size: 14px;
    line-height: 1.9;
}

.tc-privacy-section {
    margin-bottom: 64px;
}

.tc-privacy-section h2 {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
    color: var(--color-navy);
    font-size: 20px;
    line-height: 1.5;
}

.tc-privacy-section h3 {
    margin: 28px 0 8px;
    padding: 0;
    border: 0;
    color: #222;
    font-size: 14px;
    line-height: 1.6;
}

.tc-privacy-section p {
    margin: 0 0 10px;
}

.tc-privacy-contact {
    margin-top: 72px;
    font-size: 13px;
    line-height: 1.8;
}

.tc-privacy-contact p {
    margin: 0 0 4px;
}

.tc-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.tc-article__body th,
.tc-article__body td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
}

.tc-article__body th {
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
}

.tc-article__body tr:nth-child(even) td {
    background: #f5f8ff;
}

/* ========================================
   前後の記事ナビ
======================================== */
.tc-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.tc-post-nav__prev,
.tc-post-nav__next {
    flex: 1;
}

.tc-post-nav__next {
    text-align: right;
}

.tc-post-nav a {
    font-size: 14px;
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 600;
}

.tc-post-nav a:hover {
    text-decoration: underline;
}

/* ========================================
   サイドバー
======================================== */
.tc-sidebar {
    width: 304px;
    padding-right: 24px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tc-sidebar__widget {
    background: #f5f8ff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
}

.tc-sidebar__title {
    font-size: 15px;
    font-weight: 900;
    color: var(--color-navy);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-sky);
}

.tc-sidebar__search .search-form {
    display: flex;
    gap: 6px;
    margin: 0;
}

.tc-sidebar__search .search-field {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dce8f5;
    border-radius: 4px;
    font-size: 13px;
}

.tc-sidebar__search .search-submit {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--color-navy);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* カテゴリー */
.tc-sidebar__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-sidebar__cat-list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid #e0e8f5;
}

.tc-sidebar__cat-list li a {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 4px;
    font-size: 14px;
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.2s;
}

.tc-sidebar__cat-list li .count {
    display: block;
    flex: 0 0 40px;
    margin-left: auto;
    padding: 8px 4px 8px 0;
    text-align: right;
    color: var(--color-text);
    font-size: 14px;
}

.tc-sidebar__cat-list li > ul {
    flex: 0 0 100%;
    padding-right: 8px;
    box-sizing: border-box;
}

.tc-sidebar__cat-list li a:hover {
    color: var(--color-sky);
}

/* 新着記事 */
.tc-sidebar__post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-sidebar__post-item {
    border-bottom: 1px solid #e0e8f5;
}

.tc-sidebar__post-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.2s;
}

.tc-sidebar__post-item a:hover {
    color: var(--color-navy);
}

.tc-sidebar__post-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.tc-sidebar__post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA */
.tc-sidebar__cta {
    background: var(--color-navy);
    text-align: center;
}

.tc-sidebar__cta .tc-sidebar__title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.tc-sidebar__cta-text {
    color: #fff;
    font-size: 13px;
    margin: 0 0 14px;
    line-height: 1.6;
}

.tc-sidebar__cta-tel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: #fff;
    color: var(--color-navy);
    font-size: 20px;
    font-weight: 900;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 10px;
}

.tc-sidebar__cta-tel img {
    display: block;
    width: 28px;
    height: auto;
    flex: 0 0 auto;
}

.tc-sidebar__cta-tel span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.tc-sidebar__cta-tel small {
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 4px;
}

.tc-sidebar__cta-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: #06c755;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.tc-sidebar__cta-btn img {
display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tc-sidebar__cta-btn span {
    line-height: 1.15;
    text-align: left;
}

.tc-sidebar__cta-btn:hover {
    background: #05a847;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .tc-content-wrap__inner {
        gap: 32px;
    }
    .tc-sidebar {
        width: 264px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .tc-subpage-hero {
        padding: calc(var(--header-h-sm) + 60px) 0 44px;
    }

    .tc-subpage-hero__title {
        font-size: 26px;
    }

    .tc-subpage-hero__dot--lg {
        width: 38px;
        height: 38px;
        right: 20px;
        top: 50%;
        transform: translateY(-80%);
    }

    .tc-subpage-hero__dot--sm {
        width: 16px;
        height: 16px;
        right: 52px;
        top: 50%;
        transform: translateY(10%);
    }

    .tc-subpage-breadcrumb-wrap {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .tc-page-hero {
        margin-top: var(--header-h-sm);
        padding: 28px 0 20px;
    }

    .tc-page-hero__inner,
    .tc-content-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tc-page-hero__title {
        font-size: 20px;
    }

    .tc-content-wrap {
        padding-top: 36px;
        padding-bottom: 48px;
    }

    /* スマホは1カラムに */
    .tc-content-wrap__inner {
        flex-direction: column;
    }

    .tc-sidebar {
        width: 100%;
        padding-right: 0;
    }

    .tc-article__body h2 {
        font-size: 18px;
    }

    .tc-article__body h3 {
        font-size: 16px;
    }
}

/* ========================================
   アーカイブ・カテゴリーページ
======================================== */

/* カテゴリー説明文 */
.tc-archive__desc {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: #f5f8ff;
    border-left: 4px solid var(--color-navy);
    border-radius: 0 6px 6px 0;
}

/* 記事なし */
.tc-archive__empty {
    font-size: 15px;
    color: #888;
    text-align: center;
    padding: 60px 0;
}

/* ========================================
   記事カードグリッド
======================================== */
.tc-archive__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* カード */
.tc-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.has-scroll-anim .tc-archive__grid .tc-card:not(.is-visible),
body.has-scroll-anim .tc-sidebar__widget:not(.is-visible) {
    opacity: 0;
    transform: translateY(24px);
}

body.has-scroll-anim .tc-archive__grid .tc-card.is-visible,
body.has-scroll-anim .tc-sidebar__widget.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.tc-archive__grid .tc-card:nth-child(1).is-visible { transition-delay: 0.04s; }
.tc-archive__grid .tc-card:nth-child(2).is-visible { transition-delay: 0.10s; }
.tc-archive__grid .tc-card:nth-child(3).is-visible { transition-delay: 0.16s; }
.tc-archive__grid .tc-card:nth-child(4).is-visible { transition-delay: 0.22s; }
.tc-archive__grid .tc-card:nth-child(5).is-visible { transition-delay: 0.28s; }
.tc-archive__grid .tc-card:nth-child(6).is-visible { transition-delay: 0.34s; }

.tc-sidebar__widget:nth-child(1).is-visible { transition-delay: 0.04s; }
.tc-sidebar__widget:nth-child(2).is-visible { transition-delay: 0.10s; }
.tc-sidebar__widget:nth-child(3).is-visible { transition-delay: 0.16s; }
.tc-sidebar__widget:nth-child(4).is-visible { transition-delay: 0.22s; }

.tc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(29, 32, 136, 0.12);
}

.tc-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* サムネイル */
.tc-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4fb;
}

.tc-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tc-card:hover .tc-card__thumb img {
    transform: scale(1.04);
}

/* カード本文 */
.tc-card__body {
    padding: 18px 20px 20px;
}

/* カテゴリーラベル */
.tc-card__cat {
    display: inline-block;
    background: var(--color-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.tc-card__cat.category-trouble { background: #48a145; }
.tc-card__cat.category-recycling { background: #1b83da; }
.tc-card__cat.category-huyouhin-sorting { background: #42c5cf; }
.tc-card__cat.category-huyouhin-trouble { background: #fbbe3f; }
.tc-card__cat.category-kyoto-waste { background: #e85b8c; }
.tc-card__cat.category-moving { background: #ba4dca; }
.tc-card__cat.category-decluttering { background: #ff8e45; }
.tc-card__cat.category-fuyouhin-kaishu { background: #122b84; }

/* タイトル */
.tc-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 日付 */
.tc-card__date {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

/* 抜粋 */
.tc-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   ページネーション
======================================== */
.tc-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.tc-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-pagination .page-numbers li a,
.tc-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-navy);
    border: 1px solid #dce8f5;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.tc-pagination .page-numbers li a:hover {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.tc-pagination .page-numbers li span.current {
    background: var(--color-navy);
    color: #fff;
    border-color: var(--color-navy);
}

.tc-pagination .page-numbers li a.prev,
.tc-pagination .page-numbers li a.next {
    width: auto;
    padding: 0 14px;
}

/* ========================================
   アーカイブ レスポンシブ
======================================== */
@media (max-width: 768px) {
    .tc-archive__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tc-card__title {
        font-size: 14px;
    }
}