* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0.1em;
}

body {
    font-family: "Yu Gothic Medium", "Hiragino Sans", "Meiryo", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    background: none;
}

:root {
    --header-pr: 3em;
    --underline-width: 220px;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2em var(--header-pr);
}

header>nav {
    margin-left: auto;
    position: relative;
}

.name a {
    color: #000;
    text-decoration: none;
    margin-left: -1.3em;
    margin-top: 6px;
    display: inline-block;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    position: relative;
    display: inline-block;
}

.nav-menu li {
    margin: 0.8em 0;
}

.nav-menu a {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.nav-menu a:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-menu::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(-0.6 * var(--header-pr));
    width: 7px;
    background: #AA3636;
}

@media (min-width: 768px) {
    header>nav {
        margin-right: 2em;
    }

    .name a {
        margin-left: -0.5em;
    }

    .nav-menu::after {
        right: calc(-0.75 * var(--header-pr));
    }
}

main {
    padding: 150px 24px 100px;
}

.shop-wrapper {
    max-width: 520px;
    margin: 0 auto 0;
}

.shop-bar {
    position: relative;
    margin-top: 40px;
    margin-bottom: 120px;
    display: flex;
    justify-content: center;
}

.shop-line {
    position: relative;
    width: 75%;
    height: 1px;
    background: #4b4b4b;
}

.cart-icon {
    position: absolute;
    right: calc(12.5%);
    top: -35px;
}

.cart-icon img {
    width: 28px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cart-icon img:hover {
    opacity: 0.6;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    .shop-wrapper {
        max-width: 650px;
    }

    .shop-line {
        width: 100%;
    }

    .cart-icon {
        right: 0;
    }
}

.product-list {
    display: flex;
    flex-direction: column;
}

.product-card {
    position: relative;
    padding-bottom: 56px;
    margin-bottom: 120px;
}

.product-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: var(--underline-width);
    height: 1px;
    background: #4b4b4b;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-image {
    display: block;
    width: 220px;
    height: auto;
    margin: 0 auto;
}

.product-info {
    text-align: center;
    margin-top: 30px;
}

.product-title-ja {
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 6px;
}

.product-title-en {
    font-size: 12px;
    text-transform: lowercase;
    letter-spacing: 0.25em;
    margin-bottom: 6px;
}

.product-price {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.product-price .tax {
    font-size: 11px;
    margin-left: 4px;
}

.product-add {
    position: absolute;
    bottom: 16px;
    left: calc(50% - var(--underline-width) / 2 + 6px);
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.product-add::before,
.product-add::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: #4b4b4b;
    transform: translate(-50%, -50%);
}

.product-add::before {
    width: 18px;
    height: 1.5px;
}

.product-add::after {
    width: 1.5px;
    height: 18px;
}

.product-add:hover {
    opacity: 0.6;
}

@keyframes rotateOnce {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.product-add.animating::before,
.product-add.animating::after {
    animation: rotateOnce 0.5s ease-out;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

.cart-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(480px, 100%);
    background: #fff;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 901;
    padding: 32px 40px calc(40px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cart-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel.is-open {
    transform: translateX(0);
}

body.is-cart-open {
    overflow: hidden;
    height: 100%;
}

.cart-overlay.paypal-pass-through {
    pointer-events: none;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cart-header h2 {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.cart-close {
    position: relative;
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cart-close::before,
.cart-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background-color: #4b4b4b;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);
}

.cart-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.cart-close:hover::before,
.cart-close:hover::after {
    opacity: 0.6;
}

.cart-divider {
    height: 1px;
    background: #4b4b4b;
    width: 100%;
    margin: 0 auto 28px;
}

.cart-divider2 {
    height: 1px;
    background: #4b4b4b;
    width: 100%;
    margin: 0 auto 15px;
}

.cart-divider-bottom {
    margin-top: 28px;
}

.cart-items {
    overflow: visible;
    flex: 0 0 auto;
    min-height: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 28px;
    align-items: center;
    margin-bottom: 18px;
}

.cart-item-thumb {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 100px;
    height: auto;
    display: block;
}

.cart-item-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
}

.cart-item-price {
    grid-column: 3;
    grid-row: 1;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.tax {
    font-size: 11px;
    margin-left: 0.3em;
}

.cart-item-qty {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.cart-footer {
    margin-top: 12px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 24px;
}

.cart-checkout {
    width: 100%;
    border: none;
    background: #000;
    color: #fff;
    padding: 18px 0;
    font-size: 14px;
    letter-spacing: 0.3em;
    cursor: pointer;
}

.cart-checkout:hover {
    opacity: 0.8;
}

footer {
    position: relative;
    background: #A54542;
    color: #fff;
    padding: 30px 40px;
    font-family: "Yu Gothic Medium", "Hiragino Sans", sans-serif;
    text-align: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.footer-menu li {
    margin: 0;
}

.footer-menu li+li {
    margin-top: 10px;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1;
    height: 12px;
    padding: 0;
    text-decoration: none;
    color: #fff;
}

.footer-menu a span:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-menu a::before {
    content: "";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.footer-menu a:not(.current)::before {
    background: url("images/icon.png") center / contain no-repeat;
}

.footer-menu a.current::before {
    content: ">";
    font-size: 12px;
    line-height: 1;
}

.insta-link {
    position: absolute;
    top: 30px;
    right: 30px;
}

.insta-link img {
    width: 36px;
    height: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.insta-link img:hover {
    opacity: 0.75;
}

footer small {
    display: block;
    text-align: center;
    margin-top: 36px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0.8;
}

.credit {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

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

.checkout-message {
    white-space: pre-line;
}

.checkout-message[data-type="success"] {
    border-color: #4b4b4b;
}

.checkout-message[data-type="error"] {
    border-color: #AA3636;
}

.checkout-message[data-type="info"] {
    opacity: 0.8;
}