:root {
    --sp-accent: #c21f32;
    --sp-accent-strong: #9b1728;
    --sp-bg: #f2f4f8;
    --sp-surface: #ffffff;
    --sp-surface-soft: #fafbff;
    --sp-border: #dde3ec;
    --sp-text: #1d2735;
    --sp-muted: #5f6f86;
}

body.site-body {
    font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: var(--sp-text);
    background:
        radial-gradient(900px 340px at -20% -20%, rgba(194, 31, 50, 0.08), transparent 55%),
        radial-gradient(850px 320px at 120% -15%, rgba(58, 82, 117, 0.12), transparent 50%),
        var(--sp-bg);
    letter-spacing: 0.01em;
}

.brand-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.site-header {
    backdrop-filter: blur(10px);
    background:
        linear-gradient(135deg, rgba(255, 245, 247, 0.96), rgba(242, 247, 255, 0.95));
    border-bottom: 1px solid #cfd9e7;
    box-shadow: 0 8px 18px rgba(35, 54, 82, 0.1);
}

.navbar-brand {
    color: var(--sp-text) !important;
}

.sidebar-sticky {
    position: sticky;
    top: 92px;
    padding: 0.7rem;
    border-radius: 1rem;
    border: 1px solid #d7e0ee;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 249, 255, 0.92));
    box-shadow: 0 10px 22px rgba(34, 51, 79, 0.08);
}

.navbar-toggler {
    border-color: #c5cfdd;
}

.text-gold {
    color: var(--sp-accent) !important;
}

.btn-gold {
    color: #fff;
    background-color: var(--sp-accent);
    border-color: var(--sp-accent);
}

.btn-gold:hover,
.btn-gold:focus {
    color: #fff;
    background-color: var(--sp-accent-strong);
    border-color: var(--sp-accent-strong);
}

.btn-outline-gold {
    color: var(--sp-accent);
    border-color: rgba(176, 122, 47, 0.5);
    background: #fff;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    color: #fff;
    background-color: var(--sp-accent);
    border-color: var(--sp-accent);
}

.card-lux {
    background: linear-gradient(180deg, var(--sp-surface) 0%, var(--sp-surface-soft) 100%);
    border: 1px solid var(--sp-border);
    border-radius: 1rem;
    box-shadow: 0 10px 26px rgba(36, 56, 84, 0.08);
}

.hero-lux {
    border: 1px solid #f0c8cd;
    background:
        radial-gradient(580px 240px at 100% 0%, rgba(194, 31, 50, 0.14), transparent 72%),
        linear-gradient(135deg, #fff 0%, #fff8f9 50%, #fff2f4 100%);
}

.hero-chip {
    display: inline-block;
    margin: 0.2rem;
    padding: 0.44rem 0.86rem;
    border-radius: 999px;
    border: 1px solid #f1c2c8;
    color: var(--sp-accent-strong);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.7);
}

.hero-visual-wrap {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #f1cfd3;
    background: #fff;
}

.hero-visual {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tracking-wide {
    letter-spacing: 0.12em;
}

.form-field {
    background: #fff;
    color: var(--sp-text);
    border: 1px solid #cfd8e6;
}

.form-field:focus {
    border-color: #86a9e2;
    box-shadow: 0 0 0 0.2rem rgba(70, 126, 219, 0.2);
}

.link-gold {
    color: var(--sp-accent-strong);
    text-decoration: none;
}

.link-gold:hover {
    color: var(--sp-accent);
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(28, 45, 71, 0.14);
    border-color: #e9c6cb;
}

.list-group .product-card {
    border-radius: 0;
}

.list-group .product-card:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.list-group .product-card:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.product-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e7ecf3;
    background:
        radial-gradient(circle at 50% 10%, rgba(95, 111, 134, 0.08), transparent 50%),
        #fff;
}

.product-thumb-native {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.link-thumb {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef2f8;
}

.cart-item {
    background-color: #f9fbff;
    border: 1px solid #dbe2ee;
    border-radius: 0.8rem;
    padding: 0.85rem;
}

#cart-app .form-label {
    color: var(--sp-muted);
}

.pagination-dark .page-link {
    background-color: #fff;
    border-color: #d7deea;
    color: #2c3950;
}

.pagination-dark .page-item.active .page-link {
    background-color: var(--sp-accent);
    border-color: var(--sp-accent);
    color: #fff;
}

.pagination-dark .page-item.disabled .page-link {
    background-color: #f2f4f8;
    color: #9aa7bb;
}

.main-menu {
    width: 100%;
    display: flex;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 255, 0.94));
    border: 1px solid #d7e0ee;
    border-radius: 1rem;
    padding: 0.4rem;
    gap: 0.28rem;
    box-shadow:
        0 10px 20px rgba(30, 43, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.main-menu .nav-item {
    flex: 1;
    text-align: center;
}

.navbar-light .main-menu .nav-link {
    color: #22334a;
    border: 0;
    border-radius: 0.62rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px #edf2f9;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    color: currentColor;
    opacity: 0.94;
}

.nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.navbar-light .main-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-strong));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.navbar-light .main-menu .nav-link:hover,
.navbar-light .main-menu .nav-link:focus {
    color: #9b1728;
    background: linear-gradient(180deg, #fff8fa, #ffeff2);
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(155, 23, 40, 0.12), inset 0 0 0 1px #ffd4da;
}

.navbar-light .main-menu .nav-link:hover::after,
.navbar-light .main-menu .nav-link:focus::after {
    transform: scaleX(1);
}

.register-cta-link {
    display: block;
    width: 100%;
    text-align: center;
}

.register-cta-image {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 18px rgba(194, 31, 50, 0.12);
}

.border-gold-subtle {
    border-color: var(--sp-border) !important;
}

.border-charcoal {
    border-color: #d9e0eb !important;
}

.bg-charcoal {
    background-color: #fff !important;
}

.table-modern {
    --bs-table-bg: #fff;
    --bs-table-striped-bg: #f7f9fc;
    --bs-table-color: #1f2c3f;
    --bs-table-border-color: #dbe2ef;
}

.dialog-surface {
    border: 1px solid var(--sp-border);
    border-radius: 1rem;
    box-shadow: 0 24px 44px rgba(31, 48, 73, 0.2);
}

.dialog-surface .modal-title {
    color: #25344c;
    font-weight: 600;
}

#appDialogMessage {
    white-space: pre-line;
}

.producttype-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.producttype-list a {
    display: block;
    padding: 0.5rem 0.7rem 0.5rem 1.1rem;
    margin-bottom: 0.35rem;
    border-radius: 0.6rem;
    color: #324762;
    text-decoration: none;
    border: 1px solid #e1e8f3;
    background: #fff;
    transition: all 0.18s ease;
    position: relative;
}

.producttype-list a::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: #d4deec;
    transform: translateY(-50%);
}

.producttype-list a:hover {
    border-color: #efc6cc;
    background: #fff3f5;
    color: #8f1b2b;
}

.producttype-list a.active,
.producttype-list a.last-selected {
    border-color: #d75a69;
    background: linear-gradient(135deg, #fff3f5, #ffecef);
    color: #8f1b2b;
    font-weight: 600;
    box-shadow: 0 8px 14px rgba(194, 31, 50, 0.1);
}

.producttype-list a.active::before,
.producttype-list a.last-selected::before {
    background: #d75a69;
}

.brand-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-radius: 0.92rem;
    overflow: hidden;
    border: 1px solid #e8d9dc;
}

.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    box-shadow: inset -1px -1px 0 #ece3e5;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.brand-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(0.96);
    transition: filter 0.2s ease;
}

.brand-tile:hover {
    transform: scale(1.02);
    background: #fff7f8;
    box-shadow: inset 0 0 0 1px #d96b79;
}

.brand-tile:hover img {
    filter: saturate(1.12) contrast(1.03);
}

.hero-sub .hero-visual-wrap {
    border-color: #eadde1;
}

.modal-product-image-wrap {
    border: 1px solid #e1e8f2;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.8rem;
}

.modal-product-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.qty-field {
    width: 96px;
}

.decorated-label {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f2230;
    margin-bottom: 0.08rem;
}

.decorated-label::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #d75a69, #9b1728);
    box-shadow: 0 0 0 3px rgba(194, 31, 50, 0.12);
}

.floating-shortcuts {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.floating-shortcut-btn {
    border: 1px solid #d86a78;
    border-radius: 999px;
    padding: 0.54rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #8f1b2b;
    background: linear-gradient(180deg, #fff, #fff2f4);
    box-shadow: 0 10px 20px rgba(36, 56, 84, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-shortcut-btn:hover,
.floating-shortcut-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #d64d60, #a31d30);
    box-shadow: 0 12px 24px rgba(163, 29, 48, 0.28);
    transform: translateY(-2px);
}

.floating-shortcut-btn-top {
    min-width: 6.4rem;
}

.floating-shortcut-btn-parts {
    min-width: 7.1rem;
}

@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-shortcuts {
        right: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .floating-shortcut-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.85rem;
    }
}
