@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.offer-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

@media (max-width: 960px) {
    .offer-top {
        grid-template-columns: 1fr;
    }
}

.offer-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
}

.offer-side__title {
    font-weight: 800;
    margin: 0 0 10px;
}

.offer-rank {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-rank__item {
    display: flex;
}

.offer-rank__no {
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 8px;
    font-size: 12px;
}

.offer-rank__link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.offer-rank__thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
}

.offer-rank__name {
    font-size: 12px;
    font-weight: 700;
    display: block;
    line-height: 1.3;
}

.offer-rank__point {
    font-size: 12px;
    font-weight: 900;
    color: #ff4d4f;
    display: block;
    margin-top: 4px;
}

.offer-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
}

.offer-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 720px) {
    .offer-hero {
        grid-template-columns: 1fr;
    }
}

.offer-hero__thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.offer-badge {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3cd;
    margin-bottom: 8px;
}

.offer-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.offer-summary {
    display: grid;
    gap: 6px;
    margin: 8px 0 10px;
}

.offer-summary__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    font-size: 13px;
}

.offer-summary__label {
    color: #666;
    font-weight: 700;
}

.offer-point {
    font-size: 44px;
    font-weight: 900;
    color: #ff4d4f;
    text-align: right;
    margin: 8px 0 12px;
}

.offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    background: #e74c3c;
    color: #fff;
}

.offer-tabs {
    margin-top: 18px;
}

.offer-tabs input {
    display: none;
}

.offer-tabBtns {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.offer-tabBtns label {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    border-radius: 12px 12px 0 0;
    background: #f7f7f7;
}

#tab1:checked~.offer-tabBtns label[for="tab1"],
#tab2:checked~.offer-tabBtns label[for="tab2"],
#tab3:checked~.offer-tabBtns label[for="tab3"] {
    background: #2bb7a5;
    color: #fff;
}

.offer-tabPanels .offer-panel {
    display: none;
}

#tab1:checked~.offer-tabPanels .offer-panel:nth-child(1) {
    display: block;
}

#tab2:checked~.offer-tabPanels .offer-panel:nth-child(2) {
    display: block;
}

#tab3:checked~.offer-tabPanels .offer-panel:nth-child(3) {
    display: block;
}

.offer-panel__inner {
    padding: 14px 4px 4px;
}

.offer-faq__item {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0;
}

.offer-faq__item summary {
    cursor: pointer;
    font-weight: 900;
}

.offer-faq__a {
    margin-top: 8px;
    color: #333;
}

/* ===== 案件アーカイブ ===== */
.offer-archive-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 16px;
}

/* グリッド */
.offer-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .offer-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .offer-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .offer-card-grid {
        grid-template-columns: 1fr;
    }
}

/* カード */
.offer-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.offer-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サムネ */
.offer-card__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.offer-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 本文 */
.offer-card__body {
    padding: 12px;
}

.offer-card__title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card__point {
    font-size: 20px;
    font-weight: 900;
    color: #ff4d4f;
    text-align: right;
}

.offer-hero__thumb img,
.offer-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ASP画像はcover厳禁 */
    display: block;
}