:root {
    --max-width: 1100px;
    --gap: 20px;
    --header-height: 72px;
    --accent: #c94a4a;
    --muted: #666;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", Arial, sans-serif;
    color: #222
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.60)), url('material/background.webp') center/cover no-repeat fixed;
    background-color: #fff;
}

body {
    padding-top: var(--header-height);
}

.head {
    width: 100%;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1200;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.head .store_name {
    font-size: 2rem;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-family: "Hiragino Mincho ProN", "Sawarabi Mincho", "Yu Mincho", "Meiryo", serif;
    font-style: normal;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.head .email {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-weight: 600
}

.content {
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 0 16px;
    display: block;
}

.slideshow {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.slideshow img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block
}

.commodity {
    width: 100%;
    max-width: var(--max-width);
    margin: 18px auto 0 auto;
    padding: 6px 0;
}

.commodity h2 {
    margin: 6px 0 12px 0;
    padding-left: 6px
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px
}

.product-list.three-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.product-list.three-cols .product .thumb {
    height: 300px
}

.product {
    position: relative;
    background: linear-gradient(180deg, #fff, #fff);
    border: 1px solid rgba(200, 200, 200, 0.12);
    padding: 14px;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.06);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(16, 16, 16, 0.12)
}

.product h3 {
    margin: 0 0 8px 0;
    font-size: 1.08rem
}

.product ul {
    margin: 0 0 8px 1rem;
    padding: 0;
    color: var(--muted)
}

.product .thumb {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative
}

.product .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease
}

.product:hover .thumb img {
    transform: scale(1.05)
}

.product .thumb::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px
}

.price-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: var(--accent);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(201, 74, 74, 0.18)
}

.product .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.product .meta .prices {
    margin: 6px 0 0 0
}

.product .meta .tag {
    font-size: 0.85rem;
    color: var(--muted)
}

.prices {
    font-weight: 700;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25)
}

.note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px
}

.slideshow {
    position: relative
}

.slides {
    position: relative;
    height: 420px;
    overflow: hidden
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    will-change: opacity
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease, opacity .6s ease;
    will-change: transform
}

.slide.active {
    opacity: 1;
    visibility: visible
}

.slideshow:hover .slide img {
    transform: scale(1.03)
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease
}

.slide-btn.prev {
    left: 12px
}

.slide-btn.next {
    right: 12px
}

.dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease
}

.dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: 0;
    cursor: pointer;
    padding: 0
}

.dots button.active {
    background: var(--accent)
}

.slideshow:hover .slide-btn,
.slideshow:hover .dots {
    opacity: 1;
    visibility: visible
}

.slideshow.single .slide-btn,
.slideshow.single .dots {
    display: none
}

.product h3 {
    margin: 0 0 8px 0;
    font-size: 1.08rem
}

.product ul {
    margin: 0 0 8px 1rem;
    padding: 0;
    color: var(--muted)
}

.prices {
    font-weight: 700;
    color: var(--accent)
}

.note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px
}

.footer {
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 20px 16px;
    border-top: 1px solid #eaeaea;
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    position: relative;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.9));
}

.corporate_information,
.dispensing_area {
    flex: 1;
    min-width: 220px;
    background: transparent;
    padding: 0 8px
}

.corporate_information h2,
.dispensing_area h2 {
    margin-top: 0;
    font-size: 1.05rem;
    color: var(--muted);
    letter-spacing: 0.02em
}

.corporate_information p {
    margin: 6px 0;
    color: var(--muted);
    line-height: 1.6
}

.corporate_information a {
    color: var(--accent);
    text-decoration: none
}

.footer::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 50%;
    width: 1px;
    background: linear-gradient(#eee, #ddd);
    transform: translateX(-50%);
    border-radius: 1px
}

.footer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 3px 8px rgba(201, 74, 74, 0.18)
}

@media (max-width:900px) {
    .footer::before {
        left: 16px;
        right: 16px;
        top: 50%;
        bottom: auto;
        height: 1px;
        width: auto;
        transform: none
    }

    .footer::after {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%)
    }

    .corporate_information,
    .dispensing_area {
        padding: 8px 6px
    }
}

@media (max-width:900px) {
    .content {
        flex-direction: column;
        padding: 0 12px
    }

    .slides {
        height: 300px
    }

    .footer {
        flex-direction: column;
        padding: 12px
    }

    /* 三列在 Tablet 下降为两列 */
    .product-list.three-cols {
        grid-template-columns: repeat(2, 1fr)
    }

    .product .thumb {
        height: 220px
    }
}

@media (max-width:480px) {
    .head {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        padding: 12px
    }

    .head .store_name {
        font-size: 1.2rem;
        padding: 0
    }

    .slides {
        height: 220px
    }

    .product .thumb {
        height: 160px
    }
}

.dispensing_area .area-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

.dispensing_area .area-list {
    list-style: none;
    margin: 6px 0 8px 0;
    padding: 8px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center
}

.dispensing_area .area-list li {
    background: #fafafa;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid #f3f3f3;
    color: var(--muted);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 76px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03)
}

.dispensing_area .area-list li small {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1
}

.dispensing_area .area-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px
}

.dispensing_area .area-actions {
    margin-top: 10px
}

.map-link {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700
}

.map-link:hover {
    background: var(--accent);
    color: #fff
}

a,
a[href],
button,
.slide-btn,
.dots button,
.map-link,
.product {
    cursor: pointer;
}

@media (max-width:600px) {
    .dispensing_area .area-list li {
        min-width: calc(50% - 12px);
        min-height: 64px;
        padding: 10px;
    }

    /* legacy .product-list.four-cols removed */
    /* 三列在窄屏降为单列 */
    .product-list.three-cols {
        grid-template-columns: repeat(1, 1fr)
    }

    .product .thumb {
        height: 180px
    }

    .product .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }

    .price-badge {
        font-size: 0.85rem;
        padding: 5px 8px
    }
}

@media (max-width:420px) {
    .dispensing_area .area-list li {
        min-width: 100%;
    }

    /* 更小屏将卡片内文字与徽章再收敛 */
    .product h3 {
        font-size: 1rem
    }

    .product .desc {
        font-size: 0.9rem
    }

    .product .thumb {
        height: 140px
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 4px 6px
    }
}

/* 修复 <=420px 时 footer 中央分割线位置问题 */
@media (max-width:420px) {
    .footer {
        padding-bottom: 18px;
        /* 给底部留白，避免分割线覆盖内容 */
    }

    .footer::before {
        /* 横线保持左右留白并固定在底部，不使用 top:50% */
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        height: 1px;
        width: auto;
        transform: none;
    }

    .footer::after {
        /* 隐藏装饰点，避免在狭窄高度重叠 */
        display: none;
    }
}

:lang(en),
:lang(en) * {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

/* Photo note (写真についての注意) */
.photo-note {
    max-width: var(--max-width);
    margin: 18px auto 6px auto;
    padding: 12px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #f3f3f3;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

@media (max-width:600px) {
    .photo-note {
        font-size: 0.9rem;
        padding: 10px 12px;
        margin: 14px 12px;
    }
}

/* Keep header contact color for mailto link */
.head .email a {
    color: inherit; /* keep the parent color (var(--muted)) */
    text-decoration: none;
    font-weight: 600;
}
.head .email a:hover,
.head .email a:focus {
    text-decoration: underline;
    color: var(--accent);
}