/*
 * topics.css
 * ページ固有CSS：TOPICS一覧
 * 対象URL：/ev/zero/topics/
 * ガイドライン準拠：/ev/assets/css/page/ 配下に各ページ固有CSSを格納
 */

/* ページ基本設定 */
body {
    background-color: #fff;
}

/* コンテナ */
.article-wrapper {
    padding-top: 180px;
    padding-bottom: 60px;
    background-color: #fff;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

/* ページヘッダー */
.topics-header {
    text-align: center;
    margin-bottom: 50px;
}
.topics-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-family: 'Jost', sans-serif;
}
.topics-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #06b884;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* カード型グリッドレイアウト */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.topic-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(6, 184, 132, 0.12);
}
.topic-card__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #ebf9f5;
    position: relative;
}
.topic-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.topic-card:hover .topic-card__img-wrapper img {
    transform: scale(1.05);
}
.topic-card__body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.topic-card__meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
}
.topic-card__date {
    font-size: 14px;
    color: #888;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.05em;
}
.topic-card__title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-card__desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}
.pagination a,
.pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-family: 'Jost', sans-serif;
}
.pagination a:hover {
    background-color: #ebf9f5;
    color: #06b884;
    border-color: #ebf9f5;
}
.pagination .current {
    background-color: #06b884;
    color: #fff;
    border-color: #06b884;
}
.pagination .arrow {
    background: none;
    box-shadow: none;
    border: none;
    color: #06b884;
    font-size: 20px;
}
.pagination .arrow:hover {
    background: none;
    opacity: 0.7;
}

/* CTAボックス */
.cta-box {
    background: linear-gradient(135deg, #ebf9f5 0%, #f4fdfa 100%);
    padding: 50px 40px;
    border-radius: 16px;
    margin-top: 80px;
    box-shadow: 0 10px 30px rgba(6, 184, 132, 0.1);
}
.cta-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}
.cta-text-col {
    flex: 3;
    text-align: left;
}
.cta-action-col {
    flex: 2;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 12px;
}
.cta-box h2 {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    color: #06b884;
    text-align: left;
    line-height: 1.5;
}
.cta-box h3 {
    font-size: 20px;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.cta-box p {
    font-size: 16px;
    line-height: 1.8;
}
.cta-service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
    display: inline-block;
    font-size: 16px;
}
.cta-service-list li {
    margin-bottom: 12px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    line-height: 1.5;
}
.cta-service-list li i {
    color: #06b884;
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.cta-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(to right, #06b884, #15d49c);
    color: #fff;
    padding: 18px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(6, 184, 132, 0.3);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 184, 132, 0.4);
    color: #fff;
}
.cta-btn i {
    margin-right: 8px;
}

/* レスポンシブ */
@media screen and (max-width: 900px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-content-wrapper {
        flex-direction: column;
    }
}
@media screen and (max-width: 767px) {
    .article-wrapper {
        padding-top: 120px;
    }
    .topics-header h1 {
        font-size: 26px;
    }
    .topics-grid {
        grid-template-columns: 1fr;
    }
    .topic-card__title {
        font-size: 18px;
    }
    .topic-card__desc {
        font-size: 15px;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .cta-action-col {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .cta-btn {
        max-width: none;
        font-size: 16px;
    }
    .cta-box p {
        font-size: 15px;
    }
    .cta-service-list {
        font-size: 15px;
    }
}
