@charset "UTF-8";

:root {
    /* Colors */
    --color-primary: #d34538;
    --color-secondary: #E76D59;
    /* Lighter red for accents */
    --color-btn-text: #C95B49;
    --color-btn-border: #E48777;

    --color-text-main: #333333;
    --color-text-sub: #555555;
    --color-text-muted: #666666;
    --color-text-light: #999999;

    --color-bg-body: #F7F2EE;
    --color-bg-white: #ffffff;
    --color-bg-gray: #F5F5F5;
    --color-bg-tab: #F0F0F0;
    --color-bg-tab-active: #f5c8c6;

    --color-gold: #c5a365;
    --color-silver: #6a7f96;
    --color-bronze: #a57d52;
    --color-dark-gray: #555555;

    /* Font Sizes */
    --font-xs: 10px;
    --font-sm: 12px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-xxl: 23px;
    --font-xxxl: 26px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.5;
    /* Space for fixed mobile footer if needed, though not fixed in code */
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* iOS Blue Fixes */
input[type="text"],
input[type="submit"],
input[type="button"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
button,
select {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

/* Aggressive iOS Blue Resets */
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* Visual Resets (Selection & Caret) */
::selection {
    background: var(--color-primary);
    color: white;
}

input,
textarea {
    caret-color: var(--color-text-main);
}

/* Edge Case Resets (Autofill & Visited) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

a:visited {
    color: inherit;
}

a {
    color: var(--color-text-main);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s, color 0.3s;
}



/* =========================================
   Components
   ========================================= */

/* Buttons */
.btn-border {
    display: inline-block;
    border: 1px solid var(--color-btn-border);
    padding: 12px 0;
    width: 290px;
    text-align: center;
    color: var(--color-btn-text);
    background: white;
    font-size: var(--font-md);
    transition: all 0.3s;
}

.view-all-wrapper {
    text-align: center;
    padding: 35px 0 0;
}

/* Badges */
.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-primary);
    color: white;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   Header Section
   ========================================= */

/* Top Navigation Tabs */
.header-nav {
    background: var(--color-bg-white);
    padding: 10px;
}

.top-tabs {
    display: flex;
    background: var(--color-bg-tab);
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    margin: 5px auto;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-sub);
    background: transparent;
    border-radius: 25px;
    transition: background 0.3s;
    letter-spacing: 1px;
}

.tab-item.active {
    background: var(--color-bg-tab-active);
    color: var(--color-text-main);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    font-size: 18px;
    padding: 8px 0;
    font-weight: 500;
}

.highlight {
    background: transparent;
    color: white;
    padding: 2px 8px;
    margin-left: 8px;
    font-weight: 700;
    border: 1px solid white;
    display: inline-block;
    line-height: 1.2;
}

/* Header Layout */
.header {
    padding: 10px 15px;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 500;
    /* Ensure visible above content, but below overlay */
}

/* Hide detached drawer by default (PC) */
.mobile-drawer {
    display: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    gap: 12px;
}

/* Swap Login and Cart Icons */
.header-right .icon-btn:nth-child(3) {
    order: 4;
    /* Login moved to last */
}

.header-right .icon-btn:nth-child(4) {
    order: 3;
    /* Cart moved to before Login */
}

/* Logo */
.logo h1 {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1;
}

/* Hide Hamburger by default (PC) */
.hamburger-btn {
    display: none;
}

/* Mobile Navigation Overlay */
/* Mobile Navigation Overlay (Mobile Only) */
@media screen and (max-width: 1199px) {

    /* Hide Main Nav on Mobile (Original) */
    .main-nav {
        display: none;
    }

    /* The Detached Drawer */
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        /* Max width for drawer */
        height: 100vh;
        background: #fff;
        z-index: 10002;
        /* Above overlay (10000) */
        display: block;
        /* Slide out by default */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding-top: 80px;
        /* Space for close button */
        overflow-y: auto;
        pointer-events: auto;
    }

    .mobile-drawer.active {
        /* Slide in */
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* The Dark Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        /* Above header (99), below drawer (10002) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-drawer ul {
        list-style: none;
        text-align: left;
        padding: 0 30px;
        display: block;
    }

    .mobile-drawer li {
        margin: 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .mobile-drawer a {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        text-decoration: none;
        display: block;
        padding: 20px 0;
    }

    /* Menu Close Button (Inside Drawer) */
    .menu-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #f0f0f0;
        border: none;
        cursor: pointer;
        color: #333;
        width: 44px;
        /* Larger hit area */
        height: 44px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .menu-close-btn:active {
        background: #e0e0e0;
    }

    /* Hamburger Menu (Mobile Only) */
    .hamburger-btn {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 10px 0 0;
        cursor: pointer;
        gap: 4px;
        z-index: 10003;
        width: auto;
        height: auto;
        position: relative;
        /* Ensure it's a positioning context */
    }

    .hamburger-btn .lines {
        width: 30px;
        height: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Distribute lines evenly */
    }

    /* Default (Closed) State - Static for safety */
    .hamburger-btn .lines span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text-main);
        transition: transform 0.3s ease, opacity 0.3s ease;
        position: relative;
        /* Default to relative/static flow */
        left: auto;
        top: auto;
    }

    .menu-label {
        font-size: 10px;
        margin-top: 0;
        color: var(--color-text-main);
        font-weight: 500;
        line-height: 1;
    }

    /* Active State (X shape) - Switch to Absolute only when active */


    .hamburger-btn.active .lines span {
        position: absolute;
        width: 100%;
        left: 0;
        top: 9px;
        /* Center them */
    }

    .hamburger-btn.active .lines span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-btn.active .lines span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .lines span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* Header Icons */
.icon-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    color: var(--color-text-main);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.icon-label {
    font-size: 10px;
    margin-top: 2px;
    color: var(--color-text-main);
}



/* Search Overlay (Mobile) */
.search-overlay {
    display: none;
    background: #ffffff;
    padding: 80px 20px;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 100;
}

.search-overlay.active {
    display: block;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: none;
    z-index: 10;
}

.search-close svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
}

.search-close:hover svg {
    color: var(--color-text-main);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-gray);
    border-radius: 4px;
    padding: 18px 12px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--color-text-main);
}

.search-input::placeholder {
    color: var(--color-text-light);
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
}

.search-keywords {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.keyword-label {
    color: var(--color-text-muted);
}

.keyword {
    color: var(--color-text-main);
}

/* =========================================
   Hero Slider Section
   ========================================= */
.hero-slider {
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.hero-track {
    display: flex;
    gap: 0;
    padding: 0;
    /* padding removed to fix alignment */
    transform: translateX(-80%);
    /* Start with 2nd slide centered */
    animation: autoScroll 18s ease-in-out infinite;
    transition: transform 0.5s ease-in-out;
}

.hero-track.paused {
    animation-play-state: paused;
}

@keyframes autoScroll {

    0%,
    27% {
        transform: translateX(-80%);
    }

    /* 2nd slide */
    33%,
    60% {
        transform: translateX(-160%);
    }

    /* 3rd slide */
    66%,
    93% {
        transform: translateX(-240%);
    }

    /* 4th slide */
    100% {
        transform: translateX(-320%);
    }

    /* Loop point */
}

.hero-track::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 80%;
    /* Mobile layout: 80% for larger central image */
    padding: 0 10px;
    scroll-snap-align: center;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-arrow svg {
    color: var(--color-text-main);
}

.hero-arrow-prev {
    left: 10px;
}

.hero-arrow-next {
    right: 10px;
}

.hero-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(231, 109, 89, 0.5);
    /* Semi-transparent secondary color */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(231, 109, 89, 0.8);
}

.hero-dot.active {
    background: var(--color-secondary);
    width: 24px;
    border-radius: 4px;
}

/* =========================================
   Top Sections (Banners, Rankings)
   ========================================= */

/* Top Banners */
.top-banners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
    margin-bottom: 35px;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-link {
    display: block;
    transition: opacity 0.3s;
}

.banner-link:hover {
    opacity: 0.5;
}

/* Headings */
.section-header,
.eyecatch-text-section {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2,
.eyecatch-title {
    font-size: var(--font-xxl);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #514240;
    /* Specific Japanese Title Color */
}

.subtitle,
.section-header p {
    font-family: "Lato", sans-serif;
    font-size: var(--font-sm);
    color: var(--color-secondary);
    letter-spacing: 3px;
    display: block;
    margin-top: 5px;
}

/* Feature Badge (CSS Pseudo-element) */
.featured .section-header {
    position: relative;
    /* Clean if needed */
}

.featured .section-titles {
    position: relative;
    width: fit-content;
    margin: auto;
}

/* .featured .section-titles::before {
    content: "";
    display: block;
    position: absolute;
    top: -20px;
    left: -60px;
    width: 50px;
    height: 50px;
    background: url(../kirarea/recommendation.svg) no-repeat center center / contain;
    z-index: 10;
} */

/* Ranking Section */
.ranking {
    margin-bottom: 50px;
    margin-left: 15px;
}

.ranking-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    padding-left: 20px;
    /* Added left padding for scroll view */
    padding-right: 20px;
    /* Added right padding for consistency */
}

.ranking-scroll-container::-webkit-scrollbar {
    display: none;
}

.ranking-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
    position: relative;
    background: transparent;
}

.ranking-card:first-child {
    margin-left: 15px;
}

/* Rank Badges */
.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.rank-badge.gold {
    background: #a58e65;
}

.rank-badge.silver {
    background: #6a7f96;
}

.rank-badge.bronze {
    background: var(--color-bronze);
}

.rank-badge.dark-gray {
    background: var(--color-dark-gray);
}

/* Product Cards */
.product-image,
.feat-image {
    aspect-ratio: 1;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-image img,
.feat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.ranking-card,
a.featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.label-limited {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    font-size: var(--font-md);
    text-align: center;
    padding: 3px 0;
    font-weight: bold;
}

.product-catch,
.feat-catch {
    font-size: var(--font-sm);
    color: var(--color-text-main);
    margin-bottom: 8px;
    border-bottom: 1px solid #BABABA;
    padding-bottom: 3px;
    display: block;
}

.product-name,
.feat-name {
    font-size: var(--font-md);
    font-weight: 400;
    margin-bottom: 5px;
}

.product-rating {
    font-size: var(--font-sm);
    color: var(--color-gold);
    margin-bottom: 5px;
}

.product-rating .count {
    color: var(--color-text-light);
}

.product-price,
.feat-price {
    color: var(--color-primary);
    font-weight: 400;
    font-size: var(--font-lg);
}

.product-shipping {
    font-size: 11px;
    color: var(--color-text-main);
    margin-top: 5px;
}

/* Featured Section */
.featured {
    margin-bottom: 50px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 15px;
}

.featured-card {
    margin-bottom: 10px;
}

/* Categories Section */
.categories {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 15px;
}

.cat-card {
    text-align: center;
    background: transparent;
    padding-bottom: 10px;
    display: block;
    transition: opacity 0.3s ease;
}

.cat-card:hover {
    opacity: 0.5;
}

.cat-img {
    aspect-ratio: 3/2;
    margin-bottom: 10px;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-main);
}

/* News Section */
.news {
    margin-bottom: 50px;
}

.news-list {
    padding: 0 20px;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
    font-size: var(--font-md);
}

.news-list li a {
    display: block;
    color: inherit;
    transition: opacity 0.3s ease;
}

.news-list li a:hover {
    opacity: 0.6;
}

.news-list .date {
    color: var(--color-text-light);
    margin-right: 15px;
}

/* =========================================
   Footer Section
   ========================================= */
.footer {
    background: var(--color-bg-gray);
    padding: 60px 20px 20px;
    color: #333;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-grid .footer-column:nth-child(1) {
    grid-column: 1 / -1;
    /* Full width for Address */
    order: 4;
}

.footer-grid .footer-column:nth-child(2) {
    order: 1;
}

.footer-grid .footer-column:nth-child(3) {
    order: 2;
}

.footer-cta {
    grid-column: 1 / -1;
    /* Full width for CTA */
    order: 3;
    text-align: center;
}

.footer-address {
    font-size: var(--font-md);
    line-height: 1.8;
    color: var(--color-text-muted);
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #333;
}

.footer-column ul {
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--color-text-muted);
    font-size: var(--font-md);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #333;
}

.footer-cta {
    grid-column: 1 / -1;
    /* Full width on mobile */
    text-align: center;
}

.cta-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.footer-cta .cta-button {
    background: #333;
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: var(--font-md);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

/* .footer-cta .cta-button:hover removed from here */
.btn-border:hover {
    background: var(--color-btn-text);
    color: white;
    border-color: var(--color-btn-text);
}

.footer-cta .cta-button:hover,
.footer-cta .cta-button:active {
    background: #555555;
    /* Gray */
    color: white;
}

.footer-copyright {
    text-align: center;
    font-size: var(--font-sm);
    color: var(--color-text-light);
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

@media screen and (min-width: 1100px) {
    .ranking {
        max-width: 1280px;
        margin: 0 auto;
    }
}

/* =========================================
   PC Responsive Styles (min-width: 768px)
   ========================================= */
@media screen and (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    /* Container */
    .header-container,
    .featured,
    .categories,
    .news,
    .top-banners,
    .search-overlay.active,
    .search-overlay {
        max-width: 1000px;
        margin: 0 auto;
    }

    /* Header PC */
    /* PC Nav moved to min-width: 1200px */

    /* Hero PC */
    .hero-slider {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0 30px;
    }

    .hero-track {
        padding: 0;
    }

    .hero-slide {
        flex: 0 0 50%;
        /* PC layout: 50% width */
        padding: 0 10px;
    }

    .hero-slide img {
        max-height: 400px;
        object-fit: contain;
    }

    .hero-arrow-prev {
        left: calc(25% - 30px);
        /* Position near the left edge of the central slide */
    }

    .hero-arrow-next {
        right: calc(25% - 30px);
        /* Position near the right edge of the central slide */
    }

    .hero-image-placeholder {
        height: 400px;
    }

    /* Top Banners PC */
    .top-banners {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 60px 0;
    }

    .top-banners .banner-item {
        flex: 0 1 calc(50% - 8px);
        width: 100%;
    }

    /* Spacing */
    .eyecatch-text-section,
    .section-header {
        padding: 0;
        margin-bottom: 25px;
    }

    .eyecatch-title,
    .section-header h2 {
        font-size: var(--font-xxxl);
    }

    .subtitle,
    .section-header p {
        font-size: var(--font-sm);
    }

    .ranking,
    .featured,
    .categories,
    .news {
        margin-bottom: 110px;

    }

    /* Ranking PC */
    /* Ranking PC - Layout applied only for larger screens (moved to separate query below) */


    .ranking-card {
        flex: 0 0 220px;
        /* margin-bottom: 20px; -> Removed (keep horizontal layout) */
        cursor: pointer;
        transition: opacity 0.3s;
    }



    .ranking-card .product-name {
        font-size: var(--font-lg);
    }

    .ranking-card .product-price {
        font-size: 20px;
    }

    .ranking-card .product-catch {
        font-size: var(--font-sm);
    }

    .product-rating {
        font-size: var(--font-md);
    }

    .product-image img,
    .ranking-card .product-image div {
        transition: transform 0.5s ease;
    }

    /* Featured PC */
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .featured-card {
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .featured-card:hover {
        opacity: 0.5;
    }

    .feat-name {
        font-size: var(--font-lg);
    }

    .feat-price {
        font-size: 18px;
    }

    .feat-catch {
        font-size: var(--font-sm);
    }

    /* Categories PC */
    /* Categories PC */
    .category-grid {
        /* Switch to Flexbox for centering items when fewer than 3 */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .cat-card {
        cursor: pointer;
        /* Approx width for 4 cols in 1000px container */
        width: calc(25% - 23px);
        max-width: 100%;
    }

    .cat-card:hover {
        opacity: 0.5;
    }

    .cat-card h3 {
        font-size: var(--font-xl);
    }

    /* Footer PC */
    .footer {
        font-size: var(--font-md);
    }

    .footer-links h4 {
        font-size: var(--font-md);
    }

    .footer-container {
        max-width: 1080px;
        /* User requested 1080px */
        margin: 0 auto;
    }

    .footer-grid {
        display: grid;
        /* Reset from mobile flex */
        /* Address, Shopping Guide, Brands (standard width), CTA (wider) */
        grid-template-columns: 1fr 1fr 1fr 1.6fr;
        gap: 30px;
    }

    .footer-grid .footer-column:nth-child(1) {
        grid-column: auto;
        order: unset;
        /* Reset ordering */
    }

    .footer-grid .footer-column:nth-child(2) {
        order: unset;
    }

    .footer-grid .footer-column:nth-child(3) {
        order: unset;
    }

    .footer-cta {
        grid-column: auto;
        order: unset;
        /* Reset ordering */
        margin-bottom: 0;
        text-align: left;
    }

    .cta-text {
        font-size: 13px;
        /* Slightly smaller to fit */
    }
}

/* Mobile Specific */
@media screen and (max-width: 1199px) {
    .search-overlay {
        display: none !important;
    }

    .search-overlay.active {
        display: block !important;
    }

    .search-close {
        display: block;
    }
}

/* =========================================
   PC Navigation & Large Screen Styles (min-width: 1200px)
   ========================================= */
@media screen and (min-width: 1200px) {

    /* Header PC */
    .header-container {
        gap: 20px;
        max-width: 1200px;
    }

    .header-left {
        gap: 20px;
    }

    .hamburger-btn {
        display: none !important;
    }

    /* PC Nav (Main Nav) */
    .main-nav {
        display: block;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        z-index: auto;
        box-shadow: none;
        margin-right: auto;
        margin-left: 30px;
    }

    .main-nav ul {
        display: flex;
        gap: 30px;
    }

    .main-nav li {
        padding: 0;
        border: none;
    }

    .menu-close-btn {
        display: none;
    }

    .main-nav a {
        font-size: var(--font-lg);
        color: var(--color-text-main);
        transition: color 0.3s;
        font-weight: 500;
    }

    .main-nav a:hover {
        color: var(--color-primary);
    }

    /* PC Search Bar */
    .search-overlay {
        display: block !important;
        position: static;
        padding: 3px 20px;
        box-shadow: none;
        background: white;
        flex: 1;
        max-width: 1000px;
    }

    .search-close,
    .search-btn {
        display: none !important;
    }

    .search-container {
        margin: 0 0 0 auto;
        /* Align right */
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
        width: 300px;
        display: flex;
        flex-wrap: wrap;
        /* Reduced from 800px */
    }

    .search-input {
        width: 100%;
        text-overflow: ellipsis;
    }

    .search-keywords {
        display: flex;
        margin-top: 5px;
        font-size: var(--font-sm);
        max-width: 300px;
        /* Aligned with search container */
        margin: 5px 0 0 auto;
        /* Align right */
        justify-content: flex-start;
    }

    .header-right {
        gap: 15px;
        margin-left: auto;
    }


    .ranking-scroll-container {
        overflow: visible;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .ranking-card {
        margin-bottom: 20px;
    }

    .ranking-card:first-child {
        margin-left: 0;
    }

    .ranking-card:hover {
        opacity: 0.5;
    }
}

/* Override Makeshop Default CSS */
.item-list-description::after {
    display: none !important;
}
/* お気に入りアイコンを非表示にする */
button.icon-btn[onclick="location.href='/view/member/favorite'"] {
    display: none !important;
}

/* お気に入りアイコンを非表示にする */
button.icon-btn[onclick="location.href='/view/member/favorite'"] {
    display: none !important;
}




/* header-containerの横幅を100%にして右端まで広げる */
.header-container {
    width: 100%;
}

/* ヘッダーのアイコン下のテキストを非表示にする */
.header-left .menu-label,
.header-right .icon-label {
    display: none !important;
}
