/*
|--------------------------------------------------------------------------
| TOP PAGE LAYOUT
|--------------------------------------------------------------------------
*/
.front-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    box-sizing: border-box;
}

/* 左カラム */
.front-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 右サイドバー */
.front-sidebar {
    width: 320px;
    position: sticky;
    top: 20px;
    align-self: start;
    /* background: #fff;
    border: 1px solid #eee;
    padding: 16px; */
    height: fit-content;
    box-sizing: border-box;
}

.u-bg-main {
    background-color: #069bd0 !important;
}

/*
|--------------------------------------------------------------------------
| メイン内セクション
|--------------------------------------------------------------------------
*/

.front-main section {
    width: 100%;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| FV
|--------------------------------------------------------------------------
*/

.front-fv {
    position: relative;
}

.front-fv__bg img {
    width: 100%;
    height: auto;
    display: block;
}

.front-fv__content {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    /* color: #fff; */
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| セクション共通
|--------------------------------------------------------------------------
*/

.front-popular,
.front-tabs,
.front-categories {
    padding: 64px 0;
}

.front-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

/*
|--------------------------------------------------------------------------
| Swiper
|--------------------------------------------------------------------------
*/

.front-slider {
    width: 100%;
    overflow: hidden;
}

.front-slider .swiper-wrapper {
    display: flex;
}

.front-slider .swiper-slide {
    height: auto;
}

/*
|--------------------------------------------------------------------------
| タブ・カテゴリー記事一覧
|--------------------------------------------------------------------------
*/

.tab-panel,
.cat-panel {
    display: none;
}

.tab-panel.is-active {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cat-panel.is-active {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| UI
|--------------------------------------------------------------------------
*/

.front-tab-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 -1px 40px;
}

.front-tab-buttons button {
    appearance: none;
    min-width: 158px;
    height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: #b7bec2;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .2s ease, transform .2s ease;
}

.front-tab-buttons button::after {
    content: none;
}

.front-tab-buttons button:hover,
.front-tab-buttons button:focus-visible {
    background: #9fa8ad;
}

.front-tab-buttons button.is-active {
    background: #009fda;
    color: #fff;
    transform: none;
}

.front-tabs {
    background: transparent;
    border-radius: 0;
    padding: 48px 0 64px;
    box-shadow: none;
}

.front-tabs .front-title {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 24px;
    padding-left: 16px;
    color: #1d2b2f;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
}

.front-tab-content {
    position: relative;
    z-index: 1;
    padding: 56px 40px 40px;
    border-radius: 20px;
    background: #fff;
}

.article-list-item {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.article-list-item__link {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* 左サムネ */
.article-list-item__thumb {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
}

.article-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右テキスト */
.article-list-item__body {
    flex: 1;
    min-width: 0;
}

/* 上段：カテゴリ＋日付 */
.article-list-item__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.article-list-item__cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-list-item__cat {
    font-size: 11px;
    padding: 2px 8px;
    background: #f3f3f3;
    border-radius: 999px;
    color: #666;
}

.article-list-item__date {
    font-size: 11px;
    color: #999;
}

.article-list-item__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: #222;
}

.l-footer__nav li a,
.l-footer__nav li:first-child a {
    border: none;
    border-right: none;
    border-bottom: none;
}

/*
|--------------------------------------------------------------------------
| 751px〜1024px
|--------------------------------------------------------------------------
*/

@media (min-width: 751px) and (max-width: 1024px) {
    .front-page {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0;
    }

    .front-main {
        gap: 20px;
    }

    .front-sidebar {
        width: 100%;
        position: static;
    }

    .tab-panel.is-active,
    .cat-panel.is-active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .front-title {
        font-size: 28px;
    }

    .front-fv__content {
        bottom: 32px;
    }
}

/*
|--------------------------------------------------------------------------
| 最大750px
|--------------------------------------------------------------------------
*/

@media (max-width: 750px) {
    .front-page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .front-main {
        gap: 20px;
    }

    .front-sidebar {
        width: 100%;
        position: static;
        padding: 14px;
    }

    .front-popular,
    .front-tabs,
    .front-categories {
        padding: 40px 0;
    }

    .front-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tab-panel.is-active,
    .cat-panel.is-active {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .front-tab-buttons,
    .front-category-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }

    .front-fv__content {
        bottom: 20px;
        padding: 0 16px;
    }
}