/* Base variables */
:root {
    --primary-color: #454447;
    --accent-color: #ffbb00;
    --bg-color: #ffffff;
    --link-color: #33ccff;
    --warning-color: #ff0000;
    --success-color: #336600;
    --max-content-width: 1020px;
    --spacing-unit: 1.25rem;
}

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

body {
    font-family: "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

/* Layout */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Header */
.header {
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.header img {
    width: 100%;
    height: auto;
}

.header a {
    display: block;
    width: 100%;
}

/* Share Links */
.share-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 0.5rem 0;
    padding: 0 1rem;
}

.share-link {
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: scale(1.1);
}

.share-link img {
    height: 28px;
    width: auto;
}

/* Typography */
h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Content sections */
.notice,
.event-notice,
.event-details,
.goods-notice {
    margin: 0.5rem auto 2rem auto;
    padding: 1.5rem;
    max-width: var(--max-content-width);
    background-color: rgba(117,117,117,0.05);
    border-radius: 8px;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #eee;
    margin: 2rem 0;
}

/* Store list */
.store-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.store-item {
    display: flex;
    flex-direction: column;

    padding: 1.5rem;
    background-color: rgba(117,117,117,0.05);
    border-radius: 8px;
}

.store-icon {
    margin: 0 0 1rem 0;
}

.store-icon img {
    max-width: 30%;
    height: auto;
}

/* Site links */
.site-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: calc(var(--spacing-unit) * 2) 0;
    flex-wrap: wrap;
}

.site-link {
    text-align: center;
    width: 38%;
}

.site-link a {
    text-decoration: none;
    color: var(--primary-color);
    display: block;
}

.site-link img {
    width: 38%;
    height: auto;
    margin-bottom: 0.5rem;
}

.site-link p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Bottom logos */
.bottom-logos {
    width: 100%;
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
}

.bottom-logos img {
    max-height: 80px;
    width: auto;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 20px 0;
    width: 100%;
}

.footer-text {
    max-width: 1020px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--bg-color);
    text-align: center;
    padding: 0 20px;
}

/* Highlight classes */
.highlight-red,
.highlight-green,
.highlight-blue {
    font-weight: bold;
}

.highlight-red { color: var(--warning-color); }
.highlight-green { color: var(--success-color); }
.highlight-blue { color: var(--link-color); }



.goods-details {
    margin: 2rem 0;
}

.goods-item {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(117,117,117,0.05);
    border-radius: 8px;
}

.goods-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid var(--accent);
}

.goods-image {
    margin: 1rem 0;
    text-align: center;
}

.goods-image img {
    max-width: 80%;
    height: auto;
}

.benefit-image {
    margin: 1rem 0;
    text-align: center;
}

.benefit-image img {
    max-width: 60%;
    height: auto;
}

.goods-info {
    margin-top: 1rem;
}

.goods-name {
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.goods-price {
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.goods-name-center {
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.goods-price-center {
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

.goods-info ul {
    list-style: none;
    padding-left: 1rem;
}

.goods-info li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1rem;
}

.goods-info li:before {
    content: "・";
    position: absolute;
    left: -0.5rem;
}

.goods-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}


/* Tablet styles (768px to 1079px) */
@media screen and (max-width: 1079px) {
    :root {
        --max-content-width: 720px;
        --spacing-unit: 1rem;
    }

    body { font-size: 15px; }
    h2 { font-size: 1.4rem; }

    .store-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .store-item {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }
    
    .store-icon img {
        max-width: 120px;
        height: auto;
    }
    

    .footer-text {
        max-width: 720px;
        font-size: 0.75rem;
        padding: 0 15px;
    }

    .share-links {
        padding: 0 0.5rem;
        gap: 0.8rem;
        margin: 0.4rem 0 0.4rem 0;
    }

    .share-link img {
        height: 25px;
    }
}

/* Mobile landscape styles (481px to 767px) */
@media screen and (max-width: 767px) {
    :root {
        --max-content-width: 100%;
        --spacing-unit: 0.875rem;
    }

    body { font-size: 14px; }
    h2 { font-size: 1.3rem; }

    .notice,
    .event-notice,
    .event-details,
    .goods-notice { padding: 1rem; }

    .store-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .store-icon img {
        max-width: 80px;
    }

    .goods-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .goods-image img {
        max-width: 100%;
        height: auto;
    }
    


    .site-links { gap: 1rem; }

    .footer-text {
        max-width: 100%;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .share-links {
        padding: 0 0.5rem;
        gap: 0.6rem;
        margin: 0.4rem 0 0.4rem 0;
    }

    .share-link img {
        height: 22px;
    }
}

/* Mobile portrait styles (480px and below) */
@media screen and (max-width: 480px) {
    :root { --spacing-unit: 0.75rem; }

    body { font-size: 13px; }
    h2 { 
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .store-item {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .store-icon img {
        max-width: 60px;
    }

    .notice,
    .event-notice,
    .event-details,
    .goods-notice { padding: 0.875rem; }

    .goods-image img {
        max-width: 100%;
        height: auto;
    }
    

    .site-link p { font-size: 0.65rem}

    .footer { padding: var(--spacing-unit); }

    .footer-text {
        padding: 0 8px;
        font-size: 0.65rem;
    }

    .share-links {
        padding: 0 0.5rem;
        gap: 0.5rem;
        margin: 0.3rem 0 0.3rem 0;
    }

    .share-link img {
        height: 20px;
    }
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.5s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.back-to-top .arrow {
    font-size: 20px;
    line-height: 1;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    display: none;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: fixed;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #bbb;
}

/* Add cursor pointer to zoomable images */
.zoomable-image {
    cursor: pointer;
    transition: opacity 0.3s;
}

.zoomable-image:hover {
    opacity: 0.8;
}