@charset "utf-8";

/* =========================================================
   お役立ちコラム・お知らせ 専用CSS
   一覧ページ・詳細ページ共通
   ========================================================= */

/* =========================================================
   #page_title
   ========================================================= */

#page_title:after {
    background-image: url(../img/column/page_title.png);
}

/* =========================================================
   #column_list
   ========================================================= */

#column_list .wrap {
    width: 1200px;
    margin: 0 auto;
}

.column_lead {
    text-align: center;
    font-size: 1.8rem !important;
    color: #475569;
    margin: 40px 0 30px;
}

/* animation */
#column_list.fadein {
    transform: translate(200px, 0);
}
#column_list.fadein.scrollin {
    transform: translate(0, 0);
}

/* カテゴリ絞り込みタブ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
.category-filter a {
    display: inline-block;
    padding: 8px 22px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}
.category-filter a:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}
.category-filter a.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

/* 記事カード */
.column-item {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.column-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #93c5fd;
    transform: translateY(-2px);
    text-decoration: none;
}

/* サムネイル */
.column-thumb {
    width: 160px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 20px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.column-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.column-item:hover .column-thumb img { transform: scale(1.05); }
.column-thumb.no-img {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.column-thumb.no-img i {
    font-size: 28px;
    color: #94a3b8;
}

/* テキスト部 */
.column-content { flex-grow: 1; }
.column-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.column-cat {
    display: inline-block;
    font-size: 1.1rem;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}
.cat-news { background-color: #64748b; }
.cat-eff  { background-color: #ea580c; }
.cat-term { background-color: #2563eb; }

.column-date {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: bold;
}
.column-item .column-title {
    font-size: 20px !important;
    font-weight: bold;
    color: #0f172a;
    margin: 0 0 5px 0 !important;
    line-height: 1.4;
    transition: color 0.2s ease;
    text-align: left !important;
    letter-spacing: normal;
}
.column-item:hover .column-title { color: #1e40af; }
.column-item .column-desc {
    font-size: 16px !important;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: left !important;
}

.no_result {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    padding: 60px 0;
}

/* ページネーション */
.column-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.column-pager .pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}
.column-pager .pager-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
    text-decoration: none;
}
.column-pager .pager-btn.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
    cursor: default;
}

/* =========================================================
   #column_detail
   ========================================================= */

#column_detail .wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

/* animation */
#column_detail.fadein {
    transform: translate(200px, 0);
}
#column_detail.fadein.scrollin {
    transform: translate(0, 0);
}

/* 記事ヘッダ */
.detail-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}
.detail-title {
    font-size: 2.6rem;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.5;
    margin-top: 12px;
}

/* アイキャッチ */
.detail-eyecatch {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}
.detail-eyecatch img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* 本文 */
.detail-content {
    font-size: 1.6rem;
    line-height: 2;
    color: #1e293b;
    margin-bottom: 70px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e2e8f0;
}
.detail-content p  { margin-bottom: 1.4em; }
.detail-content h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #0f172a;
    margin: 2em 0 0.8em;
    padding: 10px 16px;
    border-left: 4px solid #00539c;
    background: #f8fafc;
}
.detail-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0f172a;
    margin: 1.8em 0 0.7em;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.detail-content ul,
.detail-content ol { padding-left: 2em; margin-bottom: 1.4em; }
.detail-content li { margin-bottom: 0.5em; }
.detail-content a  { color: #00539c; }
.detail-content a:hover { text-decoration: underline; }
.detail-content strong { font-weight: bold; }
.detail-content em { font-style: italic; }
.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
}

/* 前後ナビ */
.detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
}
.detail-nav-prev,
.detail-nav-next { flex: 1; }
.detail-nav-prev a,
.detail-nav-next a {
    display: block;
    text-decoration: none;
    color: #475569;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
}
.detail-nav-prev a:hover,
.detail-nav-next a:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    text-decoration: none;
}
.detail-nav-next { text-align: right; }
.nav-label {
    display: block;
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 6px;
}
.nav-title {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.5;
}
.detail-nav-center {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
}
.detail-nav-center .button a {
    display: block;
    padding: 14px 20px;
    white-space: nowrap;
}

/* =========================================================
   スマホ対応
   ========================================================= */

@media screen and (max-width: 768px) {

    #column_list .wrap,
    #column_detail .wrap,
    #breadcrumb .wrap {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .column-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .column-thumb {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .detail-title { font-size: 2rem; }
    .detail-content { font-size: 1.5rem; }

    .detail-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .detail-nav-next { text-align: left; }
    .detail-nav-center { text-align: center; }
}
