@charset "utf-8";
/* トップページの製品紹介（Products）。includes/products.php から読み込む（?v=更新日時 付き）。
   「注目」の製品を1つ大きく出し、残りはタイルで並べる（PC 4列 → 3列 → 2列） */

/* top.css の .refact ul / .refact ul li（float、幅33%、余白）を打ち消す */
.refact.products .rp-tiles {
    margin: 0;
    padding: 0 0 8em;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.refact.products .rp-tiles > li {
    width: auto;
    float: none;
    padding: 0;
}
.refact.products .rp-products a {
    text-decoration: none;
}

/* ===== 注目の製品 ===== */
.refact.products .rp-feature {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px 48px;
    margin-bottom: 40px;
    background: #fff;
    border-top: 4px solid #cf6441;
    box-shadow: 0 6px 20px rgba(33, 42, 55, .08);
    color: #222a37;
    transition: box-shadow .2s ease-out;
}
.refact.products .rp-feature:hover {
    box-shadow: 0 14px 30px rgba(33, 42, 55, .15);
    color: #222a37;
}
.refact.products .rp-feature-illust {
    flex: 0 0 260px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7f5;
    border-radius: 50%;
}
.refact.products .rp-feature-illust img {
    display: block;
    width: 190px;
    height: auto;
}
.refact.products .rp-feature-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.refact.products .rp-badge {
    font-size: 13px;
    letter-spacing: .2em;
    color: #fff;
    background: #cf6441;
    padding: 2px 12px;
    margin-bottom: 14px;
}
.refact.products .rp-feature-logo img {
    display: block;
    height: 60px;
    width: auto;
}
.refact.products .rp-feature-catch {
    margin-top: 14px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.5;
}
.refact.products .rp-feature-text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.9;
}
.refact.products .rp-feature-btn {
    margin-top: 20px;
    padding: 10px 32px;
    border-radius: 999px;
    background: #cf6441;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    transition: background .2s ease-out;
}
.refact.products .rp-feature:hover .rp-feature-btn {
    background: #b04e2c;
}

/* ===== タイル ===== */
.refact.products .rp-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding: 26px 22px 20px;
    background: #fff;
    border-top: 3px solid #cf6441;
    box-shadow: 0 4px 14px rgba(33, 42, 55, .07);
    color: #222a37;
    transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.refact.products .rp-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(33, 42, 55, .14);
    color: #222a37;
}
.refact.products .rp-tile-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.refact.products .rp-tile-logo img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
}
.refact.products .rp-tile-catch {
    flex: 1;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.7;
}
.refact.products .rp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.refact.products .rp-tags span {
    font-size: 12px;
    line-height: 1.6;
    color: #b04e2c;
    background: #fff7f5;
    border: 1px solid #f0cfc3;
    border-radius: 999px;
    padding: 1px 10px;
}
.refact.products .rp-tile-more {
    margin-top: 16px;
    text-align: right;
    font-size: 14px;
    transition: color .2s ease-out;
}
.refact.products .rp-tile-more img {
    display: inline-block;
    vertical-align: middle;
}
.refact.products .rp-tile:hover .rp-tile-more {
    color: #cf6441;
}

/* 入れ替えに合わせた余白：
   .refact.mtheader は、トップ画像のすぐ下の箱（告知だけを入れる。install-campaign.sh がこの箱の先頭に告知を差し込む）。
   Products の見出しは上に 4em 飛び出すので、その分の余白を取る */
.refact.mtheader {
    padding-bottom: 6em;
}
.refact.rp-field {
    padding-top: 6em;
}

/* ===== タブレット ===== */
@media screen and (max-width: 1100px) {
    .refact.products .rp-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 814px) {
    .refact.products .rp-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-bottom: 4em;
    }
    .refact.products .rp-feature {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }
    .refact.products .rp-feature-illust {
        flex: 0 0 auto;
        width: 200px;
        height: 170px;
    }
    .refact.products .rp-feature-illust img {
        width: 150px;
    }
    .refact.products .rp-feature-body {
        align-items: center;
        text-align: center;
    }
    .refact.products .rp-feature-catch {
        font-size: 18px;
    }
    .refact.products .rp-feature-text {
        font-size: 14px;
        text-align: left;
    }
}

/* ===== スマートフォン ===== */
@media screen and (max-width: 640px) {
    .refact.mtheader {
        padding-bottom: 3em;
    }
    .refact.rp-field {
        padding-top: 2em;
    }
    .refact.products .rp-tile {
        padding: 18px 14px 14px;
    }
    .refact.products .rp-tile-logo {
        height: 48px;
        margin-bottom: 10px;
    }
    .refact.products .rp-tile-logo img {
        max-height: 40px;
    }
    .refact.products .rp-tile-catch {
        font-size: 13px;
    }
    .refact.products .rp-tags span {
        font-size: 11px;
        padding: 0 8px;
    }
    .refact.products .rp-tile-more {
        font-size: 12px;
    }
}
