/*
Theme Name: KINTELA Child
Theme URI: https://kintela.net
Description: SWELL Child Theme for KINTELA - Before it becomes history.
Author: KINTELA
Author URI: https://kintela.net
Template: swell
Version: 1.0.2
Text Domain: kintela-child
*/

/* ============================================
   メインビジュアル非表示
   ============================================ */
body.home #main_visual {
    display: none !important;
}

/* ============================================
   トップページ スライダー: フルワイド化
   ============================================ */
body.home #post_slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
}
body.home #post_slider .p-postSlider__inner,
body.home #post_slider .l-container {
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* スライドを3列・500px高さに */
body.home #post_slider .p-postList__item {
    width: 33.333vw !important;
    max-width: 33.333vw !important;
    min-height: 500px;
    overflow: hidden;
}

/* リンクを相対ポジションのコンテナに */
body.home #post_slider .p-postList__link {
    display: block;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

/* 画像を全面に表示 */
body.home #post_slider .p-postList__thumb {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
body.home #post_slider .p-postList__thumb .c-postThumb__figure {
    width: 100%;
    height: 100%;
    margin: 0;
}
body.home #post_slider .p-postList__thumb .c-postThumb__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* タイトルをオーバーレイで表示 */
body.home #post_slider .p-postList__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3em 1em 1em;
    color: #fff;
    z-index: 2;
    margin-top: 0;
}
body.home #post_slider .p-postList__body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.65) 100%);
    z-index: -1;
}
body.home #post_slider .p-postList__title {
    color: #fff !important;
    font-size: 1em;
    line-height: 1.4;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
body.home #post_slider .p-postList__cat,
body.home #post_slider .p-postList__date {
    color: rgba(255,255,255,0.85) !important;
}

/* スライダー矢印ボタン */
body.home #post_slider .swiper-button-next,
body.home #post_slider .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
body.home #post_slider .swiper-button-next::after,
body.home #post_slider .swiper-button-prev::after {
    font-size: 14px;
}
