@charset "UTF-8";

:root {
    --sirusi-pink: #d90067;
    --sirusi-pink-light: #fffdea;
    --sirusi-ink: #333;
    --sirusi-border: #555;
    --sirusi-s: #d3c6e4;
    --sirusi-m: #cce7c9;
    --sirusi-l: #c9eaf0;
}

#sirusi-ru-order .order-page,
#sirusi-ru-order .order-page *,
#sirusi-ru-order .order-page *::before,
#sirusi-ru-order .order-page *::after {
    box-sizing: border-box;
}

#sirusi-ru-order .order-page {
    width: 100%;
    max-width: 765px;
    margin: 0 auto;
    overflow: hidden;
    color: var(--sirusi-ink);
    background: #fff;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
    -webkit-text-size-adjust: 100%;
}

#sirusi-ru-order .order-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

#sirusi-ru-order .order-page button,
#sirusi-ru-order .order-page input {
    font: inherit;
}

#sirusi-ru-order .order-page section {
    width: 100%;
}

.site-logo {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 50px 30px;
    background: #fff;
}

.site-logo a {
    display: block;
}

.site-logo img {
    width: 100%;
    max-width: 540px;
    margin-right: auto;
    margin-left: auto;
}

.order-header {
    background: #fff;
}

.order-header .pan {
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border-bottom: 1px solid #bbb;
    background: #f6f6f6;
    list-style: none;
}

.order-header .pan a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #555;
    text-decoration: none;
}

.order-header .pan a::before {
    content: "‹";
    margin-right: 6px;
    color: #aaa;
    font-size: 2rem;
    font-weight: 700;
    line-height: .8;
}

.order-header h1 {
    margin: 0;
    padding: 0;
    background: #343331;
}

.order-header h1 img {
    width: 100%;
}

.design-section {
    margin: 0;
    padding-top: clamp(42px, 9vw, 85px);
}

.step-heading {
    display: flex;
    align-items: center;
    min-height: 60px;
    width: calc(100% - 10px);
    margin: 0 0 0 10px;
    padding: 7px 14px 7px 86px;
    position: relative;
    overflow: hidden;
    border-radius: 30px 0 0 30px;
    color: #fff;
    background: #343331;
    font-size: clamp(1.25rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.step-heading .step-number {
    display: grid;
    place-items: center;
    width: 72px;
    height: 60px;
    position: absolute;
    left: 0;
    top: 0;
    border-right: 3px solid #fff;
    border-radius: 30px 0 0 30px;
    background: #343331;
    font-family: inherit;
    font-size: 2.4rem;
    font-weight: 900;
}

.step-heading small {
    margin-left: .25em;
    font-size: .8em;
}

.image-note {
    margin: 18px 20px;
    padding: 12px 14px;
    border: 1px solid var(--sirusi-pink);
    border-radius: 6px;
    color: var(--sirusi-pink);
    background: #fff;
    font-size: .93rem;
    font-weight: 700;
    text-align: center;
}

.size-group {
    min-width: 0;
    margin: 0 0 20px;
    padding: 0 20px 26px;
    border: 0;
}

.size-group.size-s {
    background: var(--sirusi-s);
}

.size-group.size-m {
    background: var(--sirusi-m);
}

.size-group.size-l {
    background: var(--sirusi-l);
}

.size-group legend {
    display: block;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 18px 10px 14px;
    float: left;
    text-align: center;
    line-height: 1.15;
}

.size-group legend + * {
    clear: both;
}

.size-name,
.size-detail {
    display: block;
}

.size-name {
    font-size: clamp(2rem, 8vw, 3.75rem);
    font-weight: 800;
}

.size-detail {
    margin-top: 3px;
    font-size: clamp(.95rem, 3.7vw, 1.55rem);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    min-width: 0;
    min-height: 500px;
    padding: 48px 18px 96px;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--sirusi-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
    border-color: #222;
}

.product-card.is-selected {
    padding: 45px 15px 93px;
    border: 5px solid var(--sirusi-pink);
    background: var(--sirusi-pink-light);
}

.product-card input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin: 0;
    position: absolute;
    left: 20px;
    bottom: 34px;
    accent-color: #111;
    cursor: pointer;
}

.product-card input[type="checkbox"]:focus {
    outline: 0;
}

.product-card input[type="checkbox"]:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

@supports selector(.product-card:has(input:focus-visible)) {
    .product-card:has(input:focus-visible) {
        outline: 3px solid #111;
        outline-offset: 3px;
    }

    .product-card input[type="checkbox"]:focus-visible {
        outline: 0;
    }
}

.selected-badge {
    display: none;
    min-height: 32px;
    padding: 0 14px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    color: #fff;
    background: var(--sirusi-pink);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.product-card.is-selected .selected-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: auto;
    max-width: 72%;
    max-height: 360px;
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(4px 6px 5px rgba(0, 0, 0, .32));
}

.product-name {
    display: flex;
    width: auto;
    min-height: 56px;
    padding: 0;
    position: absolute;
    right: 14px;
    bottom: 20px;
    left: 62px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: clamp(1.05rem, 3.4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
}

#sirusi-ru-order .order-page .selection-summary {
    width: calc(100% - 40px);
    margin: 28px 20px 32px;
    padding: 18px 20px 14px;
    border: 2px solid #aaa;
    border-radius: 12px;
    background: #fff;
}

.summary-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #999;
}

.summary-heading-row h2,
.summary-heading-row p {
    margin: 0;
}

.summary-heading-row h2 {
    font-size: clamp(1.25rem, 4.7vw, 1.8rem);
}

#selection-count {
    color: var(--sirusi-pink);
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 800;
}

#selection-empty {
    margin: 14px 0 8px;
}

#selection-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#selection-list li {
    padding: 10px 0 10px 38px;
    position: relative;
    border-bottom: 1px dotted #bbb;
    font-weight: 700;
}

#selection-list li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    position: absolute;
    left: 0;
    top: 9px;
    border-radius: 50%;
    color: #fff;
    background: var(--sirusi-pink);
    font-size: 1rem;
    font-weight: 900;
}

.summary-note {
    margin: 13px 0 0;
    font-size: .92rem;
}

.form-error {
    width: calc(100% - 40px);
    margin: 20px auto 30px;
    padding: 18px 22px;
    position: relative;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #b00020;
    font-weight: 800;
}

.form-error::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: -16px;
    left: 44px;
    border-top: 18px solid #b00020;
    border-right: 14px solid transparent;
    border-left: 14px solid transparent;
}

.form-error:focus {
    outline: 0;
}

.purchase-section {
    padding: 0 20px 48px;
}

.formBtn {
    width: 100%;
    max-width: 420px;
    margin: 34px auto 0;
}

.cart-button {
    display: block;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #ffd600;
    cursor: pointer;
}

.cart-button img {
    width: 100%;
}

.cart-button:hover {
    filter: brightness(.97);
}

.cart-button:focus-visible {
    outline: 4px solid #005fcc;
    outline-offset: 4px;
}

.cart-button:active {
    transform: translateY(2px);
}

@media (min-width: 521px) {
    #sirusi-ru-order.pc-order .order-page > main {
        width: 100%;
        max-width: 640px;
        margin-right: auto;
        margin-left: auto;
    }

    #sirusi-ru-order.pc-order .step-heading {
        font-size: 1.45rem;
    }

    #sirusi-ru-order.pc-order .step-heading > span:not(.step-number),
    #sirusi-ru-order.pc-order .step-heading small {
        white-space: nowrap;
    }

    #sirusi-ru-order.pc-order .product-name {
        font-size: 1rem;
        line-height: 1.3;
    }

    #sirusi-ru-order.pc-order .order-page > footer {
        text-align: center;
    }

    #sirusi-ru-order.pc-order .order-page > footer img {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .site-logo {
        padding: 16px 28px 20px;
    }

    .step-heading {
        width: calc(100% - 5px);
        margin-left: 5px;
        min-height: 48px;
        padding: 6px 8px 6px 62px;
        font-size: 1rem;
        border-radius: 24px 0 0 24px;
    }

    .step-heading .step-number {
        width: 54px;
        height: 48px;
        border-radius: 24px 0 0 24px;
        font-size: 1.8rem;
    }

    .image-note {
        margin: 12px 12px;
        padding: 10px 11px;
        font-size: .76rem;
        text-align: center;
    }

    .size-group {
        margin-bottom: 12px;
        padding: 0 12px 18px;
    }

    .size-group legend {
        width: calc(100% + 24px);
        margin-left: -12px;
        padding: 10px 8px 8px;
    }

    .size-name {
        font-size: 2rem;
    }

    .size-detail {
        font-size: .82rem;
    }

    .product-grid {
        gap: 10px;
    }

    .product-card,
    .product-card.is-selected {
        min-height: 345px;
        padding: 36px 8px 68px;
        border-radius: 10px;
    }

    .product-card.is-selected {
        padding: 33px 5px 65px;
        border-width: 4px;
    }

    .selected-badge {
        min-height: 28px;
        padding: 0 12px;
        top: -9px;
        font-size: .72rem;
    }

    .product-card img {
        max-width: 72%;
        max-height: 245px;
    }

    .product-card input[type="checkbox"] {
        width: 22px;
        height: 22px;
        left: 9px;
        bottom: 23px;
    }

    .product-name {
        min-height: 44px;
        right: 6px;
        bottom: 12px;
        left: 38px;
        font-size: .84rem;
    }

    #sirusi-ru-order .order-page .selection-summary {
        width: calc(100% - 24px);
        margin: 20px 12px 24px;
        padding: 12px 14px 10px;
    }

    .form-error {
        width: calc(100% - 24px);
        margin: 14px auto 24px;
        padding: 14px 16px;
        font-size: .9rem;
    }

    .form-error::after {
        bottom: -13px;
        left: 30px;
        border-top-width: 15px;
        border-right-width: 11px;
        border-left-width: 11px;
    }

    .summary-heading-row h2 {
        font-size: 1.1rem;
    }

    #selection-count {
        font-size: .92rem;
    }

    #selection-list li {
        padding: 8px 0 8px 32px;
        font-size: .82rem;
    }

    #selection-list li::before {
        width: 22px;
        height: 22px;
        top: 7px;
    }

    .summary-note {
        font-size: .76rem;
    }

    .purchase-section {
        padding: 0 12px 36px;
    }

    .formBtn {
        width: 92%;
        max-width: none;
    }

    .cart-button {
        min-height: 72px;
        border-radius: 13px;
    }
}

@media (max-width: 370px) {
    .product-card,
    .product-card.is-selected {
        min-height: 315px;
    }

    .product-card img {
        max-height: 215px;
    }

    .product-name {
        font-size: .76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .product-card {
        transition: none;
    }
}
