/* ============================================================
   COLUMN PAGE LAYOUT (Magenta Theme / Layout Fix)
   ============================================================ */

/* --- 1. Header Layout (全体を上に詰め、幅を固定) --- */
.page-header.column-header-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0; /* 上の余白を最小限に */
}

.header-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 2px solid rgba(142, 45, 226, 0.4); 
    padding-bottom: 15px; /* 下線との間隔も少し詰める */
}

.title-group {
    display: flex;
    flex-direction: column;
}

.contribute-action {
    display: flex;
    flex-direction: column;
    align-items: center; /* ボタンと※を中央揃え */
    gap: 6px;
    margin-left: auto;
    opacity: 0;
    animation: fadeUpIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.4s;
}

/* --- 2. Typography --- */
.page-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 20px rgba(142, 45, 226, 0.6);
    margin: 0;
    opacity: 0;
    animation: fadeUpIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.1s;
}

.page-lead {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 500;
    margin: 5px 0 0 5px;
    opacity: 0;
    animation: fadeUpIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.25s;
}

/* --- 3. Hero Button --- */
.btn-contribute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ff00ff !important; 
    padding: 10px 35px; /* 少しコンパクトに */
    border: 2px solid #8e2de2;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.4);
    transition: 0.3s;
}

.btn-contribute:hover {
    background: #ff00ff;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

.btn-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- 4. Grid System (全体幅 1200px を維持しつつ巨大化防止) --- */
.column-list-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 80px;
}

.column-grid {
    display: grid;
    /* ★ここを修正：全体の1200pxの中で最大4列にする設定 */
    grid-template-columns: repeat(4, 1fr); 
    /* 記事が少ないとき、左に寄せつつ最大幅を制限 */
    justify-content: start;
    gap: 24px;
    padding: 20px 0;
    opacity: 0;
    animation: fadeUpIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.6s;
}

/* 記事が少ないときでも1つが300pxを超えないようにするガード */
.column-card {
    max-width: 300px; 
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.column-card:hover {
    border-color: #ff00ff;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.2);
}

/* --- 5. Card Content (文字エリアをアイキャッチと同等に圧縮) --- */
.card-eyecatch {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-eyecatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px 18px; /* 余白を大幅に削減 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* アイキャッチ(約160px)と高さを合わせるための最小高さ */
    min-height: 100px; 
}

.card-date {
    display: block;
    font-size: 0.95rem; 
    color: #ff00ff; 
    margin-bottom: 8px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding-bottom: 4px;
}

.card-title {
    /* --- 1. 基本スタイル --- */
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4; /* 少しだけ広げて視認性確保 */
    color: #fff;
    margin-bottom: 5px; /* 下の余白をさらに圧縮 */

    /* --- 2. 行数制限（3種の神器） --- */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* ここを2に固定 */
    
    /* 標準プロパティも併記（エディタのエラー対策） */
    line-clamp: 2; 
    
    /* --- 3. 溢れ出し防止 --- */
    overflow: hidden;

    /* --- 4. 縦幅の「防波堤」（これで長くなっても膨らまない） --- */
    height: 2.8em; /* line-height(1.4) × 2行分 */
}

.card-author {
    margin-top: auto;
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* --- 6. Animations --- */
@keyframes fadeUpIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- 7. Responsive --- */
@media (max-width: 1024px) {
    .column-grid { grid-template-columns: repeat(2, 1fr); }
    .column-card { max-width: none; }
}
@media (max-width: 600px) {
    .header-flex-row { flex-direction: column; align-items: center; text-align: center; }
    .contribute-action { margin-left: 0; margin-top: 20px; }
    .column-grid { grid-template-columns: 1fr; }
    .column-card { max-width: none; }
}