@charset "utf-8";

/**
 * homepage2026.css
 * 縦横の隙間を完全に一致(20px)させた隙間統一版
 */

body {
    padding-top: 70px;
    background-color: #121212;
    color: #e0e0e0;
}

/* リンク色：ピンク */
a, a:link, a:visited {
    color: #FF3366 !important;
    text-decoration: none !important;
}

.life {
    font-size: 24px;
    text-align: center;
    color: #888;
    margin: 10px 0;
    font-family: Georgia, serif;
}

/* トップバナー */
#top_banner { width: 100% !important; margin-bottom: 1rem; }
.top_logo { width: 100% !important; height: auto !important; display: block; }

/* カードコンテナ：justify-contentをcenter、gapを20pxに固定 */
.flex_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 左右の隙間を自動調整させず中央に寄せる */
    gap: 20px;               /* 縦も横も20pxで完全に固定 */
    padding: 20px 10px;      /* 上下の余白を確保 */
}

/* カード本体：280x280固定。マージンを排除 */
.ma {
    width: 280px;
    height: 280px;
    background-color: #222;
    border: #000 solid thin;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 !important; /* gapで制御するためマージンは不要 */
}

/* 画像コンテナ */
.img_container {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.ma img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストエリア */
.text_area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 !important;
}

/* 整列：左端15px */
.ma .btn {
    align-self: flex-start;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 8px;
    margin: 8px 0 4px 15px !important;
    color: #fff !important;
}

.ma h2 {
    font-size: 15px;
    margin: 0 15px 4px 15px !important;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    font-weight: bold;
}

.ma p {
    font-size: 11px;
    margin: 0 15px 0 15px !important;
    color: #aaa !important;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

/* 日付 */
.hi {
    margin-top: auto;
    text-align: right;
    font-size: 9px;
    color: #777;
    padding: 0 10px 5px 0;
}

/* スマホ表示 */
@media (max-width: 629px) {
    body { padding-top: 100px; }
    .ma {
        width: 100%;
        height: 120px;
        flex-direction: row !important;
    }
    .ma a {
        display: flex;
        width: 100%;
        height: 100%;
    }
    .img_container {
        width: 120px !important;
        height: 120px !important;
        flex-shrink: 0;
    }
    .text_area {
        flex: 1;
        min-width: 0;
    }
    .ma .btn { margin-left: 10px !important; margin-top: 6px !important; }
    .ma h2 { margin-left: 10px !important; font-size: 14px; }
    .ma p { margin-left: 10px !important; height: 1.3em; }
}

.holiday { color: #ff3366 !important; }
.saturday { color: #0099ff !important; }