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

/* --- 0. Layout Fix (共通設定の上書き) --- */

/* mainの中央寄せを解除して横に伸ばす */
.column-index main, 
.column-index #main-content {
    align-items: stretch !important;
}

/* 親コンテナの幅制限を解除 */
.column-index .page-container {
    width: 100% !important;
    max-width: 100% !important;
}

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

.header-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    
    /* --- ここから修正 --- */
    border-bottom: 2px solid; /* 太さを指定 */
    /* 両端を濃い紫(#8e2de2)にして、中央を明るいマゼンタ(#ff00ff)にした配色 */
    border-image: linear-gradient(to right, #8e2de2, #ff00ff, #8e2de2) 1;
    
    /* 線を少し文字に近づけて引き締める（お好みで） */
    padding-bottom: 8px; 
    
    /* ネオン管のような発光感を追加 */
    box-shadow: 0 4px 10px rgba(142, 45, 226, 0.4);
}

.title-group {
    display: flex;
    flex-direction: column;
    flex: 1; /* スペースを確保 */
}

.contribute-action {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 6px;
    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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 80px;
    box-sizing: border-box;
}

.column-grid {
    display: grid;
    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;
}

.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;
    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 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4; 
    color: #fff;
    margin-bottom: 5px; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    overflow: hidden;
    height: 2.8em; 
}

.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; }
}