:root {
    --lp-color-primary: #1a7a3e;
    --lp-color-primary-dark: #14633a;
    --lp-color-primary-light: #e8f3ec;
    --lp-color-text: #222;
    --lp-color-text-sub: #555;
    --lp-color-border: #d8d8d8;
    --lp-color-border-light: #ececec;
    --lp-color-bg: #fff;
    --lp-color-bg-soft: #f6f6f6;
    --lp-color-placeholder: #d9d9d9;
    --lp-color-placeholder-dark: #b8b8b8;
    --lp-color-accent-red: #d83a3a;
    --lp-radius: 20px;
}
.page-store {
    font-size: 16px;
    line-height: 1.8;
}
@media screen and (min-width: 769px) {
    .page-store {
        font-size: 18px;
    }
}
@media screen and (max-width: 768px) {
    .page-store {
        padding-inline: 20px;
        font-size: 14px;
    }
}
/* =========================================
   Page title
   ========================================= */
.page-title {
    margin-bottom: 9px;
    padding: 16px 0;
}
/* =========================================
   Area tabs
   ========================================= */
.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}
.area-tabs li {
    width: calc((100% - 30px) / 4);
}
.area-tabs--btn {
    appearance: none;
    padding: 10px 0 30px;
    border-radius: 5px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    border: 0;
    box-shadow: 0 0 10px rgb(0 0 0 / 15%);
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}
.area-tabs--btn:hover {
    text-decoration: none;
    opacity: 0.7;
}
.area-tabs--btn::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--lp-color-primary);
    border-bottom: 1px solid var(--lp-color-primary);
    transform: rotate(45deg);
}
@media screen and (min-width: 769px) {
    .area-tabs {
        margin-bottom: 68px;
        gap: 25px 20px;
    }
    .area-tabs li {
        width: calc((100% - 80px) / 5);
    }
    .area-tabs--btn::after {
        bottom: 12px;
    }
}
/* =========================================
   Section title (緑のバー)
   ========================================= */
.section {
    margin: 0 0 36px;
}
.section-title {
    padding: 0.45em 0.9em;
    background: var(--lp-color-primary);
    color: white;
    border-radius: 0.5em;
    font-size: clamp(14px, 5.2vw, 20px);
    margin: 0 0 15px;
}
.section-lead {
    color: var(--lp-color-text-sub);
    margin: 0 0 15px;
}
@media screen and (min-width: 769px) {
    .section-title {
        padding: 0.45em 0.9em;
        border-radius: 0.2em;
        font-size: 28px;
        margin: 0 0 30px;
    }
    .section-lead {
        margin: 0 0 40px;
    }
}
/* =========================================
   Shop card
   ========================================= */
.shop {
    border-radius: var(--lp-radius);
    background: white;
    box-shadow: 0 0 10px rgb(0 0 0 / 15%);
}
.shop+.shop {
    margin-top: 40px;
}
.shop--head {
    display: flex;
    gap: 2em;
    padding: 14px 20px;
    border-bottom: 2px solid var(--lp-color-primary);
}
.shop--no {
    font-weight: 900;
    font-size: 3.4em;
    color: var(--lp-color-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    font-style: italic;
    font-family: 'Roboto Condensed';
}
.shop--racecourse {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lp-color-text);
    line-height: 1.4;
}
.shop--racecourse .en {
    display: block;
    font-size: 0.5em;
    color: #8996A7;
    font-family: 'Roboto Condensed';
}
.shop--body {
    padding: 40px;
}
.shop--name {
    font-size: clamp(14px, 4.7vw, 24px);
    font-weight: 700;
    margin: 0 0 30px;
    padding: 0;
}
.shop--name span {
    margin-left: 1em;
}
/* shop info table (definition list) */
.shop--info {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 6px 16px;
    margin: 0 0 40px;
}
.shop--info dt {
    font-weight: bold;
    letter-spacing: 0.04em;
}
.shop--info dd {
    margin: 0;
    color: var(--lp-color-text);
}
.shop--info dd small {
    font-size: 11px;
    color: var(--lp-color-text-sub);
    display: inline-block;
    margin-top: 2px;
}
.shop--info dd a {
    color: var(--lp-color-primary);
}
/* =========================================
   Gallery (image placeholders)
   ========================================= */
.gallery-wrap {
    margin: 0 0 20px;
}
.gallery {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.gallery--item {
    aspect-ratio: 3 / 2;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.gallery--item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
/* =========================================
   Map (placeholder)
   ========================================= */
.map {
    min-height: 240px;
    background: #d0d0d0;
    border-radius: 2px;
    position: relative;
    border: 1px solid #c0c0c0;
}
/* =========================================
   Recently viewed
   ========================================= */
.recently {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--lp-color-border-light);
}
.recently--title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--lp-color-text);
    margin: 0 0 24px;
    position: relative;
}
.recently--title small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--lp-color-text-sub);
    letter-spacing: 0.12em;
    margin-top: 4px;
}
.recently--title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--lp-color-primary);
    margin: 14px auto 0;
}
.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product {
    font-size: 12px;
}
.product--img {
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(135deg, #ececec 0%, #dcdcdc 100%);
    border-radius: 2px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: transform .2s ease;
}
.product--img::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 36px;
    height: 28px;
    background:
        radial-gradient(circle at 30% 35%, #fff 0 4px, transparent 5px),
        linear-gradient(135deg, transparent 50%, #b0b0b0 50%) center / 100% 60% no-repeat,
        #c5c5c5;
    border: 1px solid #a8a8a8;
    border-radius: 2px;
}
.product--img:hover {
    transform: translateY(-2px);
}
.product--badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--lp-color-accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 2px;
    z-index: 1;
}
.product--name {
    font-size: 12px;
    line-height: 1.55;
    color: var(--lp-color-text);
    margin: 0 0 4px;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product--price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-color-text);
}
.product--price span {
    font-size: 10px;
    font-weight: 400;
    color: var(--lp-color-text-sub);
    margin-left: 4px;
}
/* =========================================
   Responsive (tablet / mobile)
   ========================================= */
@media (max-width: 768px) {
    .page-title {
        font-size: 18px;
    }
    .shop--head {
        padding: 12px 14px;
        gap: 1.5em;
    }
    .shop--no {
        font-size: 48px;
    }
    .shop--racecourse {
        font-size: 21px;
        line-height: 1.5;
    }
    .shop--body {
        padding: 16px 14px 20px;
    }
    .shop--info {
        grid-template-columns: 70px 1fr;
        gap: 8px;
    }
    .gallery-wrap {
        overflow: auto;
        margin: 0 0 20px;
    }
    .gallery {
        display: flex;
        width: min-content;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .gallery::-webkit-scrollbar {
        display: none;
    }
    .gallery--item {
        width: 60vw;
    }
    .map {
        height: 180px;
    }
    .map iframe {
        height: 100%;
    }
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .area-tabs--btn {
        font-size: 11px;
        padding: 10px 2px 20px;
    }
}
/* =========================================
   Filtered state (JS toggles)
   ========================================= */
.shop.is-hidden {
    display: none;
}
/* =========================================
   store modal
   ========================================= */
.gallery--item {
    cursor: pointer;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
}

.gallery-modal.is-active {
    display: block;
}

.gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .8);
}

.gallery-modal__content {
    padding: 0 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 800px;
}

.gallery-modal__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.gallery-modal__close {
    position: absolute;
    top: -40px;
    right: -20px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}