/* =========================================================
   Maintenance
   ========================================================= */

.sg-maintenance {
    padding: 0 0 50px;
}

.sg-maintenance [id] {
    scroll-margin-top: 110px;
}


/* 共通font */

.sgma-nav-title,
.sgma-plan-title,
.sgma-price,
.sgma-season,
.sgma-teika-title {
    font-family:
        "Shippori Mincho",
        "Hiragino Mincho ProN",
        "Yu Mincho",
        serif;
}


/* =========================================================
   上部ナビ
   ========================================================= */

.sgma-nav {
    margin: 0 auto 40px;
}

.sgma-nav-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.sgma-nav-item {
    width: min(360px, calc((100% - 40px) / 3));
}

.sgma-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transform: translateY(0);
    transition: transform .25s;
}

.sgma-nav-link:hover {
    transform: translateY(-4px);
}


/* common.css hover無効 */

.sgma-nav a:has(img),
.sgma-nav a:has(img):hover,
.sgma-nav a:has(img):focus {
    overflow: visible;
}

.sgma-nav a:has(img) img,
.sgma-nav a:has(img):hover img,
.sgma-nav a:has(img):focus img {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}


/* icon */

.sgma-ico {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgma-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* text */

.sgma-nav-text {
    display: grid;
    gap: 5px;
}

.sgma-nav-sub {
    font-size: 15px;
    line-height: 1.5;
}

.sgma-nav-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   プラン
   ========================================================= */

.sgma-plan {
    padding: 40px 0 18px;
}

.sgma-plan-head {
    display: grid;
    grid-template-columns: 60px auto 1fr;
    align-items: center;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .35);
    margin-bottom: 16px;
}


/* icon */

.sgma-ico-title {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sgma-ico-title img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* title */

.sgma-plan-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .06em;
}

.sgma-plan-subtime {
    font-family:
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

/* price */

.sgma-price {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-left: auto;
}

.sgma-price-label {
    font-weight: 500;
}

.sgma-price-sales {
    font-weight: 500;
}

.sgma-price-now {
    background: #2f4482;
    color: #fff;
    padding: 8px 15px;
    font-weight: 700;
}


/* =========================================================
   表
   ========================================================= */
.sgma-plan-detail {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sgma-plan-detail>div {
    width: 100%;
}

.sgma-row {
    display: grid;
    width: 100%;
    grid-template-columns: 200px 1fr;
    border-bottom: 10px solid #fff;
}

.sgma-season {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bfe6e8;
    font-size: 20px;
    font-weight: 600;
}

.sgma-cells {
    display: flex;
    align-items: center;
    height: 100%;
    background: #f2f4f6;
    padding: 15px 20px;
    line-height: 1.8;
}


/* =========================================================
   初めてプラン
   ========================================================= */

.sgma-simple {
    padding: 30px 0;
}

.sgma-simple-note {
    margin: 14px 0 0;
    line-height: 1.9;
}


/* =========================================================
   定価
   ========================================================= */

.sgma-teika {
    padding: 34px 0 0;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.sgma-teika-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .08em;
}

.sgma-teika-box {
    background: #f2f4f6;
    padding: 14px 14px 18px;
}

.sgma-teika-grid {
    display: grid;
    gap: 10px;
}

.sgma-teika-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 12px;
}

.sgma-teika-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sgma-teika-work,
.sgma-teika-price,
.sgma-option-text {
    font-family:
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;
}

.sgma-teika-work {
    line-height: 1.8;
}

.sgma-teika-price {
    text-align: right;
    font-size: 16px;
    font-weight: 400;
}

/* option */

.sgma-option {
    margin-top: 12px;
    background: #fff;
    padding: 12px;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
}

.sgma-option-label {
    font-weight: 400;
}

.sgma-option-text {
    margin: 0;
    line-height: 1.8;
}

/* SPのみ改行表示 */
.sgma-sp-break {
    display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media(max-width:1070px) {

    .sgma-nav-item {
        width: calc((100% - 20px) / 2);
    }

}


@media(max-width:600px) {

    /* 上部ナビ */

    .sgma-nav-item {
        width: 100%;
    }

    .sgma-ico {
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
    }

    .sgma-nav-title {
        font-size: 18px;
    }


    /* plan */

    .sgma-plan-head {
        grid-template-columns: 65px 1fr;
        grid-template-areas:
            "icon title"
            ". price";
        gap: 0px 12px;
    }

    .sgma-plan-subtime {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 16px;
    }


    .sgma-ico-title {
        width: 65px;
        height: 65px;
        grid-area: icon;
    }

    .sgma-plan-title {
        font-size: 22px;
        grid-area: title;
    }

    .sgma-price {
        justify-content: flex-end;
        width: 100%;
        gap: 4px;
        flex-wrap: wrap;
        grid-area: price;
        margin-top: -4px;
    }


    /* 表 */

    .sgma-row {
        grid-template-columns: 100px 1fr;
    }

    .sgma-season {
        font-size: 16px;
    }

    .sgma-cells {
        padding: 12px 6px 12px 12px;
    }

    .sgma-plan-detail dd {
        margin-left: 10px;
    }


    /* 定価 */

    .sgma-teika-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .sgma-teika-price {
        white-space: nowrap;
        text-align: right;
    }

    .sgma-option {
        grid-template-columns: 1fr;
    }

    .sgma-sp-break {
        display: inline;
    }
}