/* NEXT MASTERS */
#next-masters {
    padding-top: 44px;
    padding-bottom: 40px;
    color: #000;
}

#next-masters p {
    margin: 0;
    color: #000;
}

#next-masters .nm-lead {
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.26;
    color: #222;
}

#next-masters .nm-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 36px;
    margin-top: 14px;
}

#next-masters .nm-title {
    margin: 0;
    font-family: 'Libre Caslon Text', serif;
    font-weight: 400;
    font-size: 55.4px;
    line-height: 1.1;
    white-space: nowrap;
    transform: scaleX(1.026);
    transform-origin: left center;
    color: #111;
}

#next-masters .nm-kana {
    margin-left: 4px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.26;
    color: #222;
}

#next-masters .nm-supporting {
    white-space: nowrap;
    padding-top: 3px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.26;
    color: #222;
}

#next-masters .nm-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 39px;
}

/* 486 / 434 / 42 of the 1040px design width, so tablets keep the proportions */
#next-masters .nm-text {
    width: 46.73%;
}

#next-masters .nm-description {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 19px;
    line-height: 39px;
    letter-spacing: 0.17px;
    color: #333;
}

#next-masters .nm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 31px;
    padding-right: 12px;
}

#next-masters .nm-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 246px;
    height: 35px;
    padding: 0 30px 0 16px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

#next-masters .nm-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 4px;
    height: 10px;
    transform: translateY(-50%);
    background: url(/images/img-renew2025/icons/arrow-btn-home.svg) center / contain no-repeat;
    transition: filter 0.4s ease-in-out;
}

#next-masters .nm-btn:hover {
    background: #fff;
    color: #111;
    text-decoration: none;
}

#next-masters .nm-btn:hover::after {
    filter: invert(1);
}

#next-masters .nm-link {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 15px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#next-masters .nm-image {
    width: 41.73%;
    margin-top: -4px;
    margin-right: 4.04%;
}

#next-masters .nm-image img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 9;
    object-fit: cover;
}

@media (max-width: 767px) {
    #next-masters {
        padding: 0px 3px 2px 4px;
    }

    /* Mobile keeps the desktop font stack; only the metrics follow the SP design. */
    /* Replaced by the feedback 288 block at the end of the file
    #next-masters .nm-lead {
        padding-bottom: 4.5px;
        border-bottom-color: #000;
        font-size: 14.44px;
        font-weight: 600;
        line-height: 1.2535;
        letter-spacing: -0.115px;
        color: #000;
    }
    */

    #next-masters .nm-heading {
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        margin-top: 11px;
        margin-left: 0;
    }

    #next-masters .nm-heading__main {
        display: contents;
    }

    #next-masters .nm-title {
        flex-basis: calc(100% / 1.062);
        width: calc(100% / 1.062);
        /* Caslon sits lower than the SP design; pull it back without moving the kana. */
        margin: -1px 0 1px;
        font-size: min(36.3px, 9.55vw);
        line-height: 37.7px;
        white-space: nowrap;
        transform: scaleX(1.062);
        color: #000;
    }

    #next-masters .nm-kana {
        margin-left: 1.4px;
        font-size: 17.78px;
        line-height: 1.2486;
        font-weight: 500;
        letter-spacing: -0.111px;
        color: #000;
    }


    /* Replaced by the feedback 288 block at the end of the file
    #next-masters .nm-supporting {
        align-self: flex-start;
        margin-top: 5.6px;
        margin-left: 40px;
        padding-top: 0;
        font-size: 12.67px;
        font-weight: 500;
        line-height: 1.2549;
        letter-spacing: -0.088px;
        color: #000;
    }
    */

    #next-masters .nm-body {
        flex-direction: column;
        margin-top: 17.8px;
    }

    #next-masters .nm-text,
    #next-masters .nm-actions {
        display: contents;
    }

    #next-masters .nm-description {
        order: 1;
        max-width: 330px;
        font-size: 12px;
        line-height: 22px;
        letter-spacing: 0;
        color: #262626;
    }


    #next-masters .nm-link {
        order: 2;
        align-self: flex-start;
        margin: 11.35px 0 0 3.5px;
        border-bottom: 1px solid #666;
        font-size: 12px;
        line-height: 12.9px;
        letter-spacing: -0.2px;
        text-decoration: none;
    }

    #next-masters .nm-image {
        order: 3;
        width: 86.8%;
        margin: 20.7px 0 0 5.07%;
    }

    #next-masters .nm-image img {
        aspect-ratio: 290.7 / 309;
    }

    #next-masters .nm-btn {
        order: 4;
        align-self: flex-start;
        min-width: 0;
        width: 190.7px;
        height: 25.7px;
        margin: 24.3px 0 0 20%;
        padding: 0 0 0 16px;
        border-radius: 0;
        font-size: 11.08px;
        letter-spacing: 0.14px;
        font-weight: 400;
    }

    #next-masters .nm-btn::after {
        right: 15.7px;
        width: 2.7px;
        height: 7.7px;
    }
}

/* NEXT MASTERS list page, PDF page 4: same heading as the top page block, then 説明文2 above the work grid */
#next-masters.nm-list {
    padding-top: 92px;
    padding-bottom: 54px;
}

#next-masters.nm-list .nm-intro {
    margin-top: 33px;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 18px;
    line-height: 33px;
    color: #282828;
}

/* Images line up with the heading: the p-2 gutter sits outside the 90% content width */
.nm-products .container-fluid-selection {
    width: calc(90% + 1rem);
}

/* PDF darkens the image only, not the p-2 gutter around it */
.nm-products .hoverbox .hoverbox-content {
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
}

.nm-products .gallery-masonry .hoverbox-content .alpha-name {
    margin: 16.8px 0 0;
    color: #fff;
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.nm-products .gallery-masonry .hoverbox-content .alpha-name .artist {
    margin-top: 9.7px;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Red SOLD OUT line as on the artist page hover, set in the tile's own type.
   The colour is repeated here: the white text of the overlay beats .archive .soldout. */
.nm-products .gallery-masonry .hoverbox-content .soldout {
    margin-top: 9.7px;
    color: #cc4b4b;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.nm-products .gallery-masonry .hoverbox-content a {
    margin-top: 31.9px;
    padding: 2.5px 21.5px;
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 500;
}

.nm-products .pagenation {
    margin-top: 40px;
}

@media (max-width: 767px) {
    /* Mobile PDF page 3: tiles 11px apart across, 7px down, inset like the design */
    #next-masters.nm-list {
        padding: 36px 3px 27px 4px;
    }

    .nm-products .container-fluid-selection {
        width: 90%;
        padding: 0 15.5px 0 5.2px;
    }

    .nm-products .sortable-item {
        padding: 3.5px 5.5px !important;
    }

    #next-masters.nm-list .nm-lead {
        padding-left: 0;
    }

    #next-masters.nm-list .nm-heading {
        column-gap: 0;
        margin-left: 0;
    }

    #next-masters.nm-list .nm-intro {
        margin: 19.8px -5px 0 2.7px;
        font-size: 12px;
        line-height: 22px;
        color: #262626;
    }
}

/* No hover on mobile, tablet or touch screens: the tile links straight to the work */
@media (max-width: 1199.98px), (hover: none) {
    .nm-products .hoverbox .hoverbox-content {
        display: none !important;
    }
}

/* NEXT MASTERS detail page, PDF page 5 (desktop, 1040px content) / mobile PDF page 4 */
#next-masters.nm-detail {
    padding-top: 90px;
    padding-bottom: 100px;
}

/* Admin product preview: the modal already frames the page */
#next-masters.nm-detail-preview {
    width: 100%;
    padding: 40px 0 20px;
}

#next-masters .nm-detail-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e2e2;
}

#next-masters .nm-detail-label {
    font-family: 'Libre Caslon Text', serif;
    font-size: 28px;
    line-height: 1.2;
}

#next-masters .nm-detail-no {
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    font-size: 38.7px;
    line-height: 1.2;
    color: #8f7a2f;
}

/* Title sits beside the images on desktop and above them on mobile */
#next-masters .nm-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 52.3%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'gallery title' 'gallery info';
    column-gap: 3.6%;
    margin-top: 42px;
}

#next-masters .nm-detail-title {
    grid-area: title;
    position: relative;
    padding-right: 40px;
}

#next-masters .nm-detail-title h1 {
    margin: 0;
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 1.25;
    color: #262626;
}

#next-masters .nm-detail-title .favor {
    position: absolute;
    top: 6px;
    right: 0;
}

#next-masters .nm-detail-title .icon-favor {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#next-masters .nm-detail-title .icon-favor:before {
    width: 24px;
    height: 24px;
    top: 0;
}

#next-masters .nm-detail-maker {
    margin-top: 6px;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 18px;
    line-height: 1.3;
    color: #4d4d4d;
}

#next-masters .nm-detail-gallery {
    grid-area: gallery;
    display: flex;
    gap: 3.9%;
}

#next-masters .nm-detail-thumbs {
    flex: 0 0 16%;
}

#next-masters .nm-detail-thumbs ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#next-masters .nm-detail-thumbs li {
    aspect-ratio: 1;
}

#next-masters .nm-detail-thumbs button {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

#next-masters .nm-detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#next-masters .nm-detail-image {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #eee;
}

#next-masters .nm-detail-image img {
    position: absolute;
    top: 23px;
    left: 23px;
    width: calc(100% - 46px);
    height: calc(100% - 46px);
}

#next-masters .nm-detail-info {
    grid-area: info;
    padding-top: 30px;
}

#next-masters .nm-detail-specs {
    margin: 0;
}

#next-masters .nm-detail-specs div {
    display: flex;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 18px;
    line-height: 34px;
}

#next-masters .nm-detail-specs dt {
    flex: 0 0 122px;
    font-weight: 400;
    color: #282828;
}

#next-masters .nm-detail-specs dd {
    margin: 0;
    color: #666;
}

#next-masters .nm-detail-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 302px;
    max-width: 100%;
    height: 50px;
    margin-top: 36px;
    border: 1px solid #000;
    border-radius: 2px;
    background: #fff;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    font-size: 18px;
    color: #282828;
    transition:
        background-color 0.2s,
        color 0.2s;
}

#next-masters button.nm-detail-buy:hover {
    background: #262626;
    color: #fff;
}

/* Sold out / no longer selling: same box as the buy button, styled like .product-data .btn.soldout */
#next-masters .nm-detail-soldout {
    border: 0;
    background: #a8a8a8;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    color: #fff;
    cursor: default;
}

#next-masters .nm-detail-body {
    margin-top: 49px;
    padding: 60px 68px 70px;
    border: 1px solid #e2e2e2;
}

/* .nm-detail beats the admin modal rule "#modal-show-work .product-content h2" */
#next-masters.nm-detail .nm-detail-heading {
    margin: 0 0 10px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: #8f7a2f;
}

#next-masters .nm-detail-description {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 16px;
    line-height: 30px;
    color: #3b3b3b;
}

#next-masters .nm-detail-description + .nm-detail-artist {
    margin-top: 40px;
}

#next-masters .nm-detail-artist-name {
    display: inline-block;
    margin-bottom: 26px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #000;
    text-decoration: underline;
}

#next-masters .nm-detail-bio,
#next-masters .nm-detail-extras {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 16px;
    line-height: 34px;
    color: #000;
}

#next-masters .nm-detail-extras {
    margin-top: 34px;
}

/* TinyMCE output brings its own <p> font; the design sets one size for the whole bio */
#next-masters .nm-detail-description *,
#next-masters .nm-detail-bio *,
#next-masters .nm-detail-extras * {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

#next-masters .nm-detail-more {
    display: none;
}

@media (max-width: 767px) {
    /* Mobile keeps the desktop font stack; only the metrics follow the SP design. */
    #next-masters.nm-detail {
        width: 100%;
        padding: 30px 21px 50px;
    }

    #next-masters .nm-detail-head {
        padding-bottom: 8px;
    }

    #next-masters .nm-detail-label {
        font-size: 17px;
    }

    #next-masters .nm-detail-no {
        margin-top: 5px;
        font-size: 24px;
        font-weight: 700;
    }

    #next-masters .nm-detail-main {
        grid-template-columns: 100%;
        grid-template-rows: auto;
        grid-template-areas: 'title' 'gallery' 'info';
        margin-top: 14px;
    }

    #next-masters .nm-detail-title h1 {
        font-size: 25px;
    }

    #next-masters .nm-detail-title .favor {
        top: 4px;
    }

    #next-masters .nm-detail-title .icon-favor {
        width: 20px;
        height: 20px;
    }

    #next-masters .nm-detail-title .icon-favor:before {
        width: 20px;
        height: 20px;
    }

    /* The SP design shows the work title alone; the artist is named again in the Artist block below. */
    #next-masters .nm-detail-maker {
        display: none;
    }

    #next-masters .nm-detail-gallery {
        gap: 12.5px;
        margin-top: 50px;
    }

    #next-masters .nm-detail-thumbs ul {
        gap: 8px;
    }

    #next-masters .nm-detail-image img {
        top: 9.1px;
        left: 14.5px;
        width: calc(100% - 29px);
        height: calc(100% - 18.2px);
    }

    #next-masters .nm-detail-info {
        padding-top: 15.5px;
    }

    #next-masters .nm-detail-specs div {
        font-size: 14px;
        line-height: 27.5px;
    }

    #next-masters .nm-detail-specs dt {
        flex-basis: 98px;
    }

    #next-masters .nm-detail-buy {
        width: 242px;
        height: 40px;
        margin-top: 29.5px;
        font-size: 14px;
    }

    #next-masters .nm-detail-body {
        margin-top: 37px;
        padding: 0;
        border: 0;
    }

    #next-masters.nm-detail .nm-detail-heading {
        font-weight: 500;
        margin-bottom: 6px;
        font-size: 14px;
    }

    #next-masters .nm-detail-description,
    #next-masters .nm-detail-bio,
    #next-masters .nm-detail-extras {
        font-size: 12px;
        line-height: 26px;
        color: #262626;
    }

    #next-masters .nm-detail-description + .nm-detail-artist {
        margin-top: 20px;
    }

    #next-masters .nm-detail-artist-name {
        margin-bottom: 18px;
        font-size: 17px;
    }

    #next-masters .nm-detail-extras {
        display: none;
        margin-top: 26px;
    }

    #next-masters .nm-detail-extras.open {
        display: block;
    }

    #next-masters .nm-detail-more {
        display: inline-flex;
        align-items: center;
        margin-top: 16px;
        padding: 4px 14px 4px 12px;
        border: 1px solid #afafaf;
        border-radius: 13px;
        background: #fff;
        font-size: 12px;
        line-height: 1.4;
        color: #262626;
    }

    #next-masters .nm-detail-more::before {
        content: '';
        width: 6px;
        height: 6px;
        margin: -4px 10px 0 0;
        border-right: 1px solid #262626;
        border-bottom: 1px solid #262626;
        transform: rotate(45deg);
    }
}

/* ---- 購入価格入力ポップアップ ------------------------------------------ */
/* Sizes follow the .pen frame 購入価格入力ポップアップ (popup 799x513 on a 1280 page). */

.nm-price-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.4);
}

.nm-price-modal[hidden] {
    display: none;
}

.nm-price-modal__dialog {
    position: relative;
    /* margin:auto instead of align-items:center so a tall popup is not cut off at the top */
    margin: auto;
    width: 799px;
    max-width: 100%;
    padding: 36px 125px 46px;
    background: #fff;
}

.nm-price-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
}

.nm-price-modal__close::before,
.nm-price-modal__close::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 3px;
    width: 24px;
    height: 3px;
    background: #262626;
}

.nm-price-modal__close::before {
    transform: rotate(45deg);
}

.nm-price-modal__close::after {
    transform: rotate(-45deg);
}

.nm-price-modal__title {
    /* Keep clear of the close button: EN/FR titles are longer than the Japanese one. */
    margin: 0 0 53px;
    padding: 0 40px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 600;
    font-size: 23.2px;
    text-align: center;
    color: #262626;
}

.nm-price-modal__row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 33px;
}

.nm-price-modal__row--total {
    align-items: flex-start;
    margin-bottom: 0;
}

.nm-price-modal__label {
    flex: none;
    width: 190px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    font-size: 21.6px;
    color: #262626;
}

.nm-price-modal__label-sub {
    margin-left: 6px;
    font-weight: 400;
}

.nm-price-modal__input-wrap {
    position: relative;
    display: block;
    width: 309px;
    max-width: 100%;
}

.nm-price-modal__input {
    width: 100%;
    height: 45px;
    padding: 0 36px 0 12px;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 19px;
    text-align: right;
    color: #262626;
}

.nm-price-modal__unit {
    position: absolute;
    top: 50%;
    right: 12px;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 19px;
    color: #262626;
    transform: translateY(-50%);
}

.nm-price-modal__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 309px;
    max-width: 100%;
    font-family: 'Shippori Mincho B1', serif;
    color: #262626;
}

.nm-price-modal__total-line {
    /* Nudged to sit exactly where the .pen frame puts the amount. */
    margin: -4px -5px 0 0;
    font-weight: 400;
    font-size: 28.7px;
}

.nm-price-modal__total-unit {
    margin-left: 10px;
    font-size: 28.7px;
}

.nm-price-modal__shipping {
    margin: -7px -21px 0 0;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 16.5px;
}

.nm-price-modal__error {
    margin: 12px 0 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    text-align: center;
    color: #cc4b4b;
}

.nm-price-modal__error:empty {
    display: none;
}

.nm-price-modal__note {
    margin: 25px 0 0;
    padding-right: 30px;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 16.6px;
    text-align: center;
    color: #262626;
}

/* The theme styles every button on hover/focus (border + white background); this one stays a link. */
.nm-price-modal__guide,
.nm-price-modal__guide:hover,
.nm-price-modal__guide:focus {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: #262626;
    text-decoration: underline;
}

.nm-price-modal__guide:focus-visible {
    outline: 2px solid #262626;
    outline-offset: 2px;
}

.nm-price-modal__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 549px;
    max-width: 100%;
    height: 98px;
    margin: 40px auto 0;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, #002e2f 0%, #00393b 100%);
    color: #fff;
}

/* No hover or focus feedback: the theme repaints every button (border + white background). */
/* home.css carries "button:focus { ... !important }", so these need !important too. */
.nm-price-modal__submit:hover,
.nm-price-modal__submit:focus {
    border: 0 !important;
    background: linear-gradient(90deg, #002e2f 0%, #00393b 100%) !important;
    color: #fff !important;
    box-shadow: none;
    outline: none;
}

.nm-price-modal__submit:disabled:hover,
.nm-price-modal__submit:disabled:focus {
    background: #bcccca !important;
}

.nm-price-modal__close:hover,
.nm-price-modal__close:focus {
    border: 0;
    background: none;
    box-shadow: none;
    outline: none;
}

/* Keyboard users keep a visible ring. */
.nm-price-modal__submit:focus-visible,
.nm-price-modal__close:focus-visible {
    outline: 2px solid #262626;
    outline-offset: 2px;
}

.nm-price-modal__submit:disabled {
    background: #bcccca;
    cursor: not-allowed;
}

.nm-price-modal__submit-caption {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 16.6px;
}

.nm-price-modal__submit-label {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 400;
    font-size: 22.8px;
}

@media (max-width: 767px) {
    .nm-price-modal {
        padding: 20px 12px;
    }

    .nm-price-modal__dialog {
        padding: 26px 20px 30px;
    }

    .nm-price-modal__close {
        width: 22px;
        height: 22px;
    }

    .nm-price-modal__close::before,
    .nm-price-modal__close::after {
        top: 9.5px;
        left: 3px;
        width: 16px;
    }

    .nm-price-modal__title {
        margin-bottom: 34px;
        padding: 0 34px;
        font-size: 18px;
        line-height: 1.3;
    }

    /* The SP design keeps label and field on one row, like the desktop popup. */
    .nm-price-modal__row {
        gap: 10px;
        margin-bottom: 16.5px;
    }

    .nm-price-modal__row--total {
        align-items: center;
    }

    .nm-price-modal__label {
        margin-top: 0;
        width: auto;
        font-size: 16px;
        white-space: nowrap;
    }

    .nm-price-modal__input-wrap,
    .nm-price-modal__total {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .nm-price-modal__input,
    .nm-price-modal__unit {
        font-size: 17px;
    }

    .nm-price-modal__input {
        height: 40px;
        padding-right: 42px;
    }

    .nm-price-modal__total-line {
        margin: 0;
        font-size: 24px;
    }

    .nm-price-modal__total-unit {
        font-size: 19px;
    }

    /* Not part of the SP design: the shipping terms live in ご利用ガイド. */
    .nm-price-modal__shipping {
        display: none;
    }

    .nm-price-modal__note,
    .nm-price-modal__submit-caption {
        font-size: 14px;
    }

    .nm-price-modal__note {
        margin-top: 21px;
        padding-right: 0;
    }

    .nm-price-modal__submit {
        height: 76px;
        margin-top: 22px;
    }

    .nm-price-modal__submit-label {
        font-size: 19px;
    }
}

/* ---- ご利用ガイド window (spec p.17) ----------------------------------- */

.nm-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.4);
}

.nm-guide-modal[hidden] {
    display: none;
}

.nm-guide-modal__dialog {
    position: relative;
    margin: auto;
    width: 1000px;
    max-width: 100%;
    padding: 40px 92px 56px;
    background: #fff;
}

.nm-guide-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #262626;
}

.nm-guide-modal__close:hover,
.nm-guide-modal__close:focus {
    border: 0 !important;
    background: #262626 !important;
    box-shadow: none;
    outline: none;
}

.nm-guide-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -6px;
}

.nm-guide-modal__close::before,
.nm-guide-modal__close::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 8px;
    width: 24px;
    height: 3px;
    background: #fff;
}

.nm-guide-modal__close::before {
    transform: rotate(45deg);
}

.nm-guide-modal__close::after {
    transform: rotate(-45deg);
}

.nm-guide-modal__lead {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #262626;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 26px;
    color: #262626;
}

.nm-guide-modal__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 36px;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.nm-guide-modal__title {
    margin: 0;
    font-family: 'Libre Caslon Text', serif;
    font-weight: 400;
    font-size: 55.4px;
    line-height: 1.1;
    white-space: nowrap;
    color: #262626;
}

.nm-guide-modal__kana {
    margin-left: 4px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.26;
    color: #262626;
}

.nm-guide-modal__supporting {
    white-space: nowrap;
    padding-top: 3px;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.26;
    color: #262626;
}

.nm-guide-modal__bar {
    margin: 0;
    padding: 7px 14px;
    background: #ccd278;
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 600;
    font-size: 15px;
    color: #262626;
}

.nm-guide-modal__body {
    max-height: 52vh;
    margin-top: 44px;
    overflow-y: auto;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 14px;
    line-height: 2;
    color: #262626;
}

@media (max-width: 767px) {
    .nm-guide-modal {
        padding: 20px 12px;
    }

    .nm-guide-modal__dialog {
        padding: 26px 20px 30px;
    }

    .nm-guide-modal__close {
        top: 10px;
        right: 10px;
        width: 22px;
        height: 22px;
    }

    .nm-guide-modal__close::before,
    .nm-guide-modal__close::after {
        top: 9px;
        left: 4px;
        width: 14px;
    }

    .nm-guide-modal__heading {
        align-items: center;
        gap: 0;
    }

    .nm-guide-modal__heading-main {
        display: contents;
    }

    .nm-guide-modal__lead {
        font-size: 14.4px;
        font-weight: 600;
        line-height: 1.2535;
        letter-spacing: -0.115px;
    }

    .nm-guide-modal__kana {
        margin-left: 1.4px;
        font-size: 17.78px;
        line-height: 1.2486;
        font-weight: 500;
        letter-spacing: -0.111px;
        color: #262626;
    }

    .nm-guide-modal__title {
        flex-basis: calc(100% / 1.062);
        width: calc(100% / 1.062);
        margin: -1px 0 1px;
        font-size: min(36.3px, 9.55vw);
        font-weight: 400;
        line-height: 37.7px;
    }

    .nm-guide-modal__supporting {
        align-self: flex-start;
        margin-top: 5.6px;
        margin-left: 40px;
        padding-top: 0;
        font-size: 12.67px;
        line-height: 1.2549;
        letter-spacing: -0.088px;
        font-weight: 500;
    }

    .nm-guide-modal__body {
        max-height: 56vh;
        font-size: 13px;
    }

    .nm-guide-modal__body p {
        font-size: 13px !important;
    }
}

/* Update base on feedback 288 */
@media (max-width: 767px) {
    #next-masters .nm-lead {
        font-size: clamp(11.4px, 3vw, 20px);
    }

    #next-masters .nm-supporting {
        margin-left: 10px;
        font-size: clamp(11.4px, 3vw, 20px);
        padding-top: 0;
    }
}
