/* ============================================
   相続コラム 共通スタイル（一覧・記事）
   既存 style.min.css の CSS変数を利用
   ============================================ */

/* パンくず */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.breadcrumb li:not(:last-child)::after {
    content: '›';
    color: #bbb;
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #8a6d35;
}
.breadcrumb [aria-current="page"] {
    color: var(--primary-color);
    font-weight: 700;
}

/* リード文 */
.column-lead {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.9;
}

/* 一覧グリッド */
.column-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* 記事カード */
.column-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.column-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}
.column-card__body {
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.column-card__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-light);
}
.column-card__cat {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}
.column-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--primary-color);
    margin: 0.2rem 0;
}
.column-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
}
.column-card__more {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8a6d35;
}

/* 準備中（空カード） */
.column-card--soon {
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    border-style: dashed;
    box-shadow: none;
    min-height: 180px;
    cursor: default;
}
.column-card--soon:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   記事本文
   ============================================ */
.page-title--article {
    font-size: 2.1rem;
    line-height: 1.5;
}

.article {
    max-width: 760px;
    margin: 0 auto;
}
.article__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1.8rem;
}
.article__cat {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
}
.article__body {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-color);
}
.article__body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2.6rem 0 1rem;
    padding-left: 1rem;
    border-left: 5px solid var(--secondary-color);
    line-height: 1.5;
}
.article__body h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 2rem 0 0.8rem;
}
.article__body p {
    margin-bottom: 1.4rem;
}
.article__body ul,
.article__body ol {
    margin: 0 0 1.4rem 1.5rem;
}
.article__body li {
    margin-bottom: 0.5rem;
}
.article__body a {
    color: #8a6d35;
    font-weight: 700;
    text-decoration: underline;
}
.article__body strong {
    color: var(--primary-color);
}

/* 計算式ハイライト */
.calc-box {
    background-color: var(--bg-light);
    border: 1px solid var(--accent-color);
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.6rem 1.8rem;
    margin: 1.5rem 0 2rem;
    text-align: center;
}
.calc-box__formula {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.9;
}
.calc-box__note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.6rem;
}

/* 本文内テーブル */
.article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.8rem;
    font-size: 0.92rem;
}
.article__body th,
.article__body td {
    border: 1px solid #e3e3e3;
    padding: 0.8rem 1rem;
    text-align: left;
}
.article__body thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    text-align: center;
}
.article__body tbody td:first-child {
    background-color: #fcfcfc;
    color: var(--primary-color);
    font-weight: 700;
}

/* 注意ボックス */
.note-box {
    background-color: #fff8f0;
    border: 1px solid #ffd9a0;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin: 1.6rem 0;
    font-size: 0.92rem;
    line-height: 1.9;
}
.note-box__title {
    font-weight: 700;
    color: #e65100;
    margin-bottom: 0.4rem;
}

/* 監修者 */
.article__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: var(--bg-light);
}
.article__author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--secondary-color);
    flex-shrink: 0;
}
.article__author-name {
    font-weight: 700;
    color: var(--primary-color);
}
.article__author-role {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* 免責 */
.article__disclaimer {
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    background-color: #f6f6f6;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* 記事下CTA */
.article-cta {
    margin-top: 2.5rem;
    padding: 2.2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f6f0 0%, #fff 100%);
    border-radius: 10px;
}
.article-cta__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.article-cta__text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 一覧へ戻る */
.back-to-list {
    text-align: center;
    margin-top: 2.5rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .column-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .page-title--article {
        font-size: 1.5rem;
    }
    .article__body {
        font-size: 0.95rem;
        line-height: 1.9;
    }
    .article__body h2 {
        font-size: 1.25rem;
    }
    .calc-box__formula {
        font-size: 1.05rem;
    }
}
