@charset "utf-8";

/* =========================================================
   しんきんカード（card.css）
   個人＝緑／法人（.blue）＝青
   ブレークポイント：〜798px でスマートフォン表示
   ========================================================= */

:root {
    --green: #15A648;
    --green-band: #FBFFEF;
    --title-band: #F4FCEC;
    --blue: #0067A5;
    --blue-lt: #0B6FB8;
    --blue-band: #EAF4FC;
    --ink: #333;
    --sub: #9B9B9B;
}


/* ---------------------------------------------------------
   概要ボックス（表＋チラシ）
   --------------------------------------------------------- */
.gaiyo-box {
    margin-top: 10px;
    padding: 28px 32px;
    background: #fff;
    border: 1.5px solid #C8E6C8;
    border-radius: 12px;
}

.gaiyo-box.blue {
    border-color: #BFDCEA;
}

.gaiyo-flex {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-top: 4px;
}


/* ---------------------------------------------------------
   概要テーブル
   --------------------------------------------------------- */
.cd-table {
    border-top: 1px solid var(--green);
}

.trow {
    display: flex;
    border-bottom: 1px solid var(--green);
}

.tlabel {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 220px;
    padding: 16px 13px;
    background: var(--green-band);
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

/* ソース上の改行をそのまま表示（pre-line） */
.tval {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    white-space: pre-line;
}

.tval.tval-b {
    display: block;
    padding: 16px 20px;
}

.blue .cd-table {
    border-top-color: var(--blue);
}

.blue .trow {
    border-bottom-color: var(--blue);
}

.blue .tlabel {
    background: var(--blue-band);
}

.trow:last-child {
    border-bottom: none;
}


/* ---------------------------------------------------------
   カードの種類・年会費の表
   --------------------------------------------------------- */
.cardgrid {
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: rgba(0, 0, 0, .12);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
}

.cg-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 118px 150px;
    gap: 1px;
    background: rgba(0, 0, 0, .12);
}

.cg-row > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 14px;
    background: #fff;
    font-size: 14.5px;
    line-height: 1.6;
}

.cg-head > span {
    padding-top: 9px;
    padding-bottom: 9px;
    background: var(--green-band);
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.blue .cg-head > span {
    background: var(--blue-band);
}

.cg-name,
.cg-nm {
    font-weight: 700;
}

.cg-name em {
    margin-top: 4px;
    font-size: 12.5px;
    font-style: normal;
    font-weight: 400;
    color: #666;
}

/* ブランド（Visa／JCB）バッジ */
.cg-bd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.cg-bd .bd {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.bd-visa {
    background: #1A1F71;
}

.bd-jcb {
    background: #0B4EA2;
}

.cg-f1,
.cg-f2 {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cg-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}


/* ---------------------------------------------------------
   チラシ
   --------------------------------------------------------- */
.flyer-col {
    text-align: center;
}

.flyer-col h3 {
    height: 30px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 6px solid var(--green);
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #333;
    text-align: left;
}

.flyer-photo {
    display: block;
    width: 100%;
    border: 1px solid #9EC73C;
    border-radius: 8px;
}

/* 縦長の短冊チラシは、A4チラシと同じ高さになる幅で表示 */
.flyer-photo.strip {
    width: 64%;
    margin: 0 auto;
}

.cd-flyer-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    margin-top: 16px;
    padding: 0 8px 0 20px;
    background: var(--green);
    border-radius: 40px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.cd-flyer-btn .a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
}

.cd-flyer-btn .a .arw {
    width: 17px;
    height: 7px;
    object-fit: contain;
}

.blue .flyer-col h3 {
    border-left-color: var(--blue);
}

.blue .flyer-photo {
    border-color: var(--blue-lt);
}

.blue .cd-flyer-btn {
    background: var(--blue);
}


/* ---------------------------------------------------------
   特典ハイライト（キャッシュバック／キャンペーン）
   --------------------------------------------------------- */
.hl-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}

.hl-box {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    background: var(--green-band);
    border: 2px solid var(--green);
    border-radius: 12px;
}

.hl-label {
    display: inline-block;
    padding: 5px 16px;
    background: var(--green);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.hl-lead {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.45;
    color: var(--green);
}

.hl-body {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #333;
    white-space: pre-line;
}

.hl-note {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #555;
}

/* ご入会期間：ボックス下端にそろえ、ラベルと日付を列でそろえる */
.hl-box .hl-term {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, .2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    color: #333;
}

.ht-lb {
    flex: 0 0 auto;
}

.ht-lb::after {
    content: "：";
}

.ht-list {
    display: grid;
    gap: 2px;
}

.ht-list b {
    display: inline-block;
    width: 4.2em;
}

.blue .hl-box {
    background: var(--blue-band);
    border-color: var(--blue);
}

.blue .hl-label {
    background: var(--blue);
}

.blue .hl-lead {
    color: var(--blue);
}

/* キャンペーン内容の表 */
.hl-cmp {
    display: grid;
    gap: 1px;
    margin-top: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, .14);
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 8px;
}

.hc-row {
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, .14);
}

.hl-cmp.c3 .hc-row {
    grid-template-columns: 1fr 150px 116px;
}

.hl-cmp.c2 .hc-row {
    grid-template-columns: 1fr 150px;
}

.hc-row > span {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    background: #fff;
    font-size: 13.5px;
    line-height: 1.6;
}

.hc-head > span {
    background: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.hc-val {
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.hc-head .hc-val {
    color: #333;
}

.hc-note {
    font-size: 12.5px;
    color: #444;
}

.blue .hc-val {
    color: var(--blue);
}


/* ---------------------------------------------------------
   オンライン申込（外部サイトへ）
   --------------------------------------------------------- */
.apply-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--green-band);
    border: 1px solid var(--green);
    border-radius: 12px;
}

.apply-cta .ac-txt {
    flex: 1;
}

.apply-cta .ac-t {
    font-size: 19px;
    font-weight: 700;
    color: #333;
}

.apply-cta .ac-d {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.apply-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 300px;
    height: 65px;
    background: var(--green);
    border-radius: 10px;
    box-shadow: 0 5px 0 #216438;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.apply-btn svg {
    flex: 0 0 auto;
    width: auto;
    height: 22px;
}

.apply-btn .ex {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}


/* ---------------------------------------------------------
   注記ボックス（法人＝オンライン入会不可）
   --------------------------------------------------------- */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 18px 22px;
    background: #F6F8FA;
    border: 1px solid #CBD5E1;
    border-left: 5px solid var(--blue);
    border-radius: 10px;
}

.info-box .ib-ic {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: var(--blue);
}

.info-box .ib-t {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.info-box .ib-d {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
}


/* ---------------------------------------------------------
   スマートフォン（〜798px）
   --------------------------------------------------------- */
@media (max-width: 768px) {

    /* 概要ボックス：表 → チラシの縦積み */
    .gaiyo-box {
        padding: 16px;
    }

    .gaiyo-flex {
        display: block;
        margin-top: 14px;
    }

    /* 概要テーブル */
    .tlabel {
        width: 112px;
        padding: 12px 10px;
        font-size: 12.5px;
    }

    .tval {
        padding: 12px;
        font-size: 12.5px;
        line-height: 1.7;
    }

    .tval.tval-b {
        padding: 12px;
    }

    /* カードの種類・年会費：見出し行を隠し、カード名の下に「本会員／家族会員」を並べる */
    .cg-row {
        grid-template-columns: 1fr auto;
    }

    .cg-row > span {
        padding: 8px 10px;
        font-size: 12px;
    }

    .cg-head {
        display: none;
    }

    .cg-name {
        grid-column: 1 / -1;
    }

    .cg-name em {
        font-size: 11px;
    }

    .cg-bd .bd {
        padding: 2px 6px;
        font-size: 10px;
    }

    .cg-row > .cg-f1,
    .cg-row > .cg-f2 {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    .cg-f1,
    .cg-f2 {
        grid-column: 1 / -1;
    }

    .cg-f1::before,
    .cg-f2::before {
        font-weight: 400;
        color: #666;
    }

    .cg-f1::before {
        content: "本会員";
    }

    .cg-f2::before {
        content: "家族会員";
    }

    .blue .cg-f1::before {
        content: "代表使用者・本会員";
    }

    .blue .cg-f2::before {
        content: "追加使用者";
    }

    .cg-note {
        font-size: 11.5px;
    }

    /* チラシ */
    .flyer-col {
        margin-top: 24px;
    }

    .flyer-col h3 {
        height: auto;
        padding-left: 10px;
        font-size: 16px;
    }

    .cd-flyer-btn {
        height: 48px;
        font-size: 14px;
    }

    /* 特典ハイライト：1列に */
    .hl-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }

    .hl-box {
        padding: 14px 16px;
    }

    .hl-label {
        padding: 4px 12px;
        font-size: 11px;
    }

    .hl-lead {
        margin-top: 8px;
        font-size: 16px;
    }

    .hl-body {
        font-size: 12.5px;
        line-height: 1.8;
    }

    .hl-box .hl-term {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 12px;
    }

    .hl-note {
        font-size: 11px;
    }

    /* キャンペーン表：達成条件は次の行へ */
    .hl-cmp.c3 .hc-row,
    .hl-cmp.c2 .hc-row {
        grid-template-columns: 1fr 96px;
    }

    .hl-cmp.c3 .hc-note {
        grid-column: 1 / -1;
        padding-top: 0;
        font-size: 11px;
        color: #666;
    }

    .hc-row > span {
        padding: 7px 9px;
        font-size: 11.5px;
    }

    /* オンライン申込：ボタンを全幅に */
    .apply-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .apply-cta .ac-t {
        font-size: 16px;
    }

    .apply-cta .ac-d {
        font-size: 12.5px;
    }

    .apply-btn {
        width: 100%;
        height: auto;
        padding: 12px 16px;
        box-shadow: 0 4px 0 #216438;
        font-size: 14px;
    }

    /* 注記ボックス */
    .info-box {
        gap: 10px;
        padding: 14px;
    }

    .info-box .ib-ic {
        width: 20px;
        height: 20px;
    }

    .info-box .ib-t {
        font-size: 14px;
    }

    .info-box .ib-d {
        font-size: 12.5px;
    }
}