@charset "utf-8";

/*===============================================
* slide
===============================================*/
.habakiri-slider__transparent-layer {
    position: relative;
}

.habakiri-slider__transparent-layer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='0.8' fill='rgba(0,0,0,0.2)'/%3E%3C/svg%3E");
    background-size: 3px 3px;
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.habakiri-slider__item-wrapper {
    position: relative;
    z-index: 3;
}

/*===============================================
* layout
===============================================*/
/* --- トップページ全体の余白 --- */
.top-content-wrapper {
    margin: 60px auto;
}

/* --- 上段：おすすめコンテンツのカード専用スタイル --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.custom-card {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    color: #333 !important;
}

.card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}