:root {
    --primary-color: #1a2744;
    --primary-dark: #0f1829;
    --accent-color: #c9a962;
    --accent-hover: #b8964a;
    --accent-light: rgba(201, 169, 98, 0.15);
    --charcoal: #2d2d2d;
    --slate: #3d4a5c;
    --background-color: #f8f7f4;
    --background-card: #ffffff;
    --background-warm: #fdfcf9;
    --text-color: #2d2d2d;
    --text-muted: #5c5c5c;
    --border-color: rgba(26, 39, 68, 0.08);
    --shadow-sm: 0 2px 12px rgba(26, 39, 68, 0.06);
    --shadow-md: 0 6px 24px rgba(26, 39, 68, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.brand-text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.header {
    background-color: var(--background-card);
    border-bottom: 1px solid var(--border-color);
}

.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.header-sticky .navbar {
    border-bottom: 3px solid var(--accent-color);
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    min-height: auto;
}

.navbar-brand {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.navbar-brand .brand-text {
    font-size: 1.4rem;
}

.nav-menu-equal .nav-link {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.85rem;
}

.header-top {
    background-color: var(--primary-dark);
    border-bottom: none;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.header-top .form-control {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.header-top .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-top .btn-outline-dark {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.header-top .btn-outline-dark:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.search-form {
    max-width: 400px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.35rem 0;
}

.nav-menu-equal {
    display: flex;
    flex: 1 1 auto;
    max-width: 720px;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
}

.nav-menu-equal .nav-item {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.nav-menu-equal .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-trigger {
    position: relative;
    padding: 0.5rem 0.75rem !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.cart-count {
    margin-left: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 1.2em;
    display: inline-block;
}

.cart-count:empty::before {
    content: '0';
    opacity: 0.6;
}

.snipcart-total-price {
    display: none !important;
}

.nav-link {
    color: var(--primary-color);
    transition: color 0.2s ease, background 0.2s ease;
}

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

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hero {
    margin-bottom: 0;
    overflow: hidden;
}

.hero .carousel {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero .carousel-inner {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.hero .carousel-item {
    position: relative;
    max-height: 420px;
}

.hero .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 420px;
}

.hero .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 39, 68, 0.75) 0%, transparent 50%);
    pointer-events: none;
}

.hero .carousel-caption {
    bottom: 3.5rem;
    left: 1.5rem;
    right: 1.5rem;
    text-align: center;
    z-index: 2;
}

.hero .carousel-caption .display-4,
.hero .carousel-caption h1.display-4,
.hero .carousel-caption h2.display-4 {
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.hero .carousel-caption .lead {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
    margin-bottom: 1rem;
}

.hero .carousel-caption .btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.hero .carousel-caption .btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary-dark);
}

.hero .carousel-caption.text-dark .display-4,
.hero .carousel-caption.text-dark .lead {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.carousel-indicators {
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    opacity: 0.8;
    transition: all 0.25s ease;
}

.carousel-indicators [data-bs-target]:hover {
    opacity: 1;
    background: rgba(255,255,255,0.4);
}

.carousel-indicators [data-bs-target].active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
    border-color: #fff;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-control-prev { left: 1rem; }
.carousel-control-next { right: 1rem; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.35);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

.navbar-brand,
.nav-link,
.btn-link {
    position: relative;
    overflow: hidden;
}

.navbar-brand::after,
.nav-link::after,
.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.25s ease;
}

.navbar-brand:hover::after,
.nav-link:hover::after,
.btn-link:hover::after {
    width: 100%;
}

.category-card,
.product-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.category-card:hover,
.product-card:hover {
    box-shadow: 0 12px 32px rgba(26, 39, 68, 0.12);
    transform: translateY(-4px);
    border-color: var(--accent-light);
}

.product-card .card-img-top,
.category-card .card-img-top {
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img-top,
.category-card:hover .card-img-top {
    transform: scale(1.03);
}

.product-card > a,
.category-card .card-img-top {
    display: block;
    overflow: hidden;
}

.product-card .card-body,
.category-card .card-body {
    padding: 1.35rem 1.5rem;
}

.product-card .card-title,
.category-card .card-title {
    color: var(--primary-color);
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-card .card-title a,
.category-card .card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.product-card .card-title a:hover,
.category-card .card-title a:hover {
    color: var(--accent-color);
}

.product-card .card-text,
.category-card .card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.product-card .btn-dark,
.category-card .btn-dark {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.product-card .btn-dark:hover,
.category-card .btn-dark:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.4);
    transform: translateY(-1px);
}

.product-card .btn-outline-dark,
.category-card .btn-outline-dark {
    border-radius: var(--radius);
    border-width: 2px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
}

.product-card .btn-outline-dark:hover,
.category-card .btn-outline-dark:hover {
    border-color: var(--accent-color);
    background: var(--accent-light);
    color: var(--primary-color);
}

section.py-5.bg-light {
    background-color: var(--background-warm) !important;
}

section:not(.hero):not(.footer) .container > h1,
section:not(.hero):not(.footer) .container > h2 {
    position: relative;
    padding-bottom: 0.75rem;
}

section:not(.hero):not(.footer) .container > h1::after,
section:not(.hero):not(.footer) .container > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 2px;
}

.badge.bg-dark {
    background-color: var(--primary-color) !important;
}

.alert-dark {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.footer {
    background-color: var(--primary-color);
    border-top: none;
    color: rgba(255,255,255,0.85);
}

.footer-heading {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer h5 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    line-height: 2;
}

.footer a:hover {
    color: var(--accent-color);
}

.footer address {
    font-style: normal;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
}

.footer .text-muted,
.footer address,
.footer p {
    color: rgba(255,255,255,0.95) !important;
}

.footer .text-muted a,
.footer address a {
    color: rgba(255,255,255,0.95);
}

.footer .text-muted a:hover,
.footer address a:hover {
    color: var(--accent-color);
}

.footer hr {
    margin: 2rem 0;
    border-color: rgba(255,255,255,0.2);
}

.footer .container {
    padding-bottom: 1.5rem;
}

.footer-description {
    margin-bottom: 0;
    padding-bottom: 0.25rem;
}

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 991px) {
    .nav-menu-equal {
        flex-wrap: wrap;
        max-width: none;
    }
    .nav-menu-equal .nav-item {
        flex: 0 1 auto;
    }
    .nav-menu-equal .nav-link {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .hero .carousel-item,
    .hero .carousel-item img {
        max-height: 280px;
        height: 280px;
    }
    .hero .carousel-caption {
        bottom: 2rem;
    }
    .hero .carousel-caption .display-4 {
        font-size: 1.5rem;
    }
    .carousel-indicators {
        margin-bottom: 0.75rem;
    }
}
.contact-info .card {
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, var(--background-color) 0%, rgba(255,255,255,0.9) 100%);
    border: 1px solid var(--border-color);
}

.contact-info .card:hover {
    transform: translateY(-5px);
}

.contact-info .card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info .fas {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

h1, h2, h3 {
    color: var(--primary-color);
}

.contact-form .form-label {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: none;
}

.contact-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.faq .accordion-button {
    color: var(--primary-color);
    background-color: var(--background-color);
    border: none;
}

.faq .accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background-color: var(--background-color);
    box-shadow: none;
}

.faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.faq .accordion-body {
    color: var(--text-color);
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}
