@charset "utf-8";

body {
    font-family: "BBText Regular", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

a {
    color: #000;
    text-decoration: none;
}

/* 全体エリア（PC時：下マージン100px） */
div.furusato_area {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 100px;
    box-sizing: border-box;
}

/* カード共通スタイル（aタグ・divタグ共通化） */
.furusato_card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #E9E9E9;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

a.furusato_card:hover {
    opacity: 0.7;
}

.furusato_card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 右下の黒い三角マーク（PC時：26px） */
.furusato_card::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 26px 26px;
    border-color: transparent transparent #000000 transparent;
}

/* -----------------------------------
   PC表示（デフォルト設定）
----------------------------------- */

/* 1段目（ふるなび）：420px x 195px */
div.furusato_top {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.furusato_card_large {
    width: 420px;
    height: 195px;
}

/* 2段目・3段目（3列グリッド）：250px x 250px */
div.furusato_grid {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 30px;
    justify-content: center;
}

div.furusato_grid .furusato_card {
    width: 250px;
    height: 250px;
}


/* -----------------------------------
   SP表示対応（横幅768px以下）
----------------------------------- */
@media screen and (max-width: 768px) {
    /* SP全体の幅を335pxに固定して中央寄せ＋下マージン80px */
    div.furusato_area {
        width: 100%;
        max-width: 335px;
        margin: 0 auto 80px !important;
    }

    /* 1段目（ふるなび）：335px内いっぱいに収める */
    div.furusato_top {
        width: 100%;
        margin-bottom: 20px;
    }

    .furusato_card_large {
        width: 100%;
        max-width: 335px;
        height: 156px;
    }

    /* 2段目・3段目：3列（103px * 3 + 間隔13px * 2 = 335pxぴったり） */
    div.furusato_grid {
        display: grid;
        grid-template-columns: repeat(3, 103px);
        gap: 13px;
        width: 100%;
        max-width: 335px;
        margin: 0 auto;
        justify-content: space-between;
    }

    div.furusato_grid .furusato_card {
        width: 103px;
        height: 103px;
    }

    /* SP時の黒三角マーク */
    .furusato_card::after {
        bottom: 3px;
        right: 3px;
        border-width: 0 0 11px 11px;
    }
}

/* -----------------------------------
   特定バナーの非表示設定（PC・SP共通）
----------------------------------- */
/* さとふる（3番目）とYahoo（4番目）の三角アイコンを非表示 */
div.furusato_grid .furusato_card:nth-child(3)::after,
div.furusato_grid .furusato_card:nth-child(4)::after {
    display: none !important;
}