:root {
    --bg: #0b0b0b;
    --panel: #141414;
    --card: #1a1a1a;
    --line: #2a2a2a;
    --gold: #f2c230;
    --gold-d: #bb8e00;
    --text: #e7e7e7;
    --muted: #a5a5a5;
    --accent: #00c26a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius: 16px;
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Sawarabi Mincho", serif;
}
a {
    color: var(--text);
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #0e0e0e;
    border-bottom: 1px solid var(--line);
}
.container {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-main {
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
}
.brand-sub {
    color: #ddd;
}
.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav a {
    opacity: 0.9;
}
.nav a:hover,
.nav a.active {
    color: var(--gold);
}
.cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.95;
}
.cart svg {
    width: 18px;
    height: 18px;
    display: block;
}

.hero {
    padding: 64px 12px;
    background: radial-gradient(
        1000px 280px at 50% -50px,
        #1b1b1b 10%,
        transparent 60%
    );
}
.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}
.hero-sub {
    letter-spacing: 0.28em;
    margin-bottom: 12px;
    opacity: 0.85;
    color: #d9b23c;
}
.hero-title {
    font-size: 74px;
    line-height: 1.15;
    margin: 6px 0 12px;
    color: var(--gold);
    text-shadow: 0 8px 18px rgba(255, 220, 90, 0.35), 0 0 2px #000;
}
.hero-title .jp {
    color: #fff;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.hero-lead {
    opacity: 0.9;
}

.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 12px;
}
.section-title {
    font-size: 24px;
    margin: 6px 0 14px;
    color: var(--gold);
}
.section-subtitle {
    margin: 14px 0 10px;
    color: #ddd;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 520px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.thumb {
    width: 100%;
    aspect-ratio: 4/5;
    background: repeating-linear-gradient(
        45deg,
        #2a261c 0 12px,
        #3c3626 12px 24px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfae55;
}
.thumb.lg {
    aspect-ratio: 3/4;
}
.noimg {
    font-weight: 700;
    opacity: 0.9;
}
.card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-title {
    margin: 0 0 6px;
}
.card-title .en {
    color: #d9b23c;
    margin-left: 0.4em;
}
.card-feature {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.6em * 2);
}
.price {
    font-weight: 700;
    margin: 2px 0 8px;
}
.price.lg {
    font-size: 22px;
    margin-bottom: 14px;
}
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}
.btn {
    background: var(--gold);
    color: #1a1200;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 0 var(--gold-d);
    cursor: pointer;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo",
        system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.btn:hover {
    filter: brightness(1.05);
}
.btn.lg {
    padding: 12px 22px;
    border-radius: 14px;
}

.band {
    padding: 26px 12px;
}
.band-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}
.band-thumb {
    height: 320px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfae55;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.band-title {
    margin: 0 0 6px;
    color: var(--gold);
}
.note {
    color: var(--muted);
    font-size: 12px;
}
.band--commit .band-thumb,
.band--gift .band-thumb {
    background: #000;
}
.fit-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-position: top center;
}
@media (min-width: 641px) {
    .fit-img {
        object-fit: contain;
    }
}
@media (max-width: 640px) {
    .fit-img {
        object-fit: cover;
    }
}

.company-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}
.footer {
    padding: 24px 12px;
    text-align: center;
    color: #bdbdbd;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

#gift-imgbox {
    position: absolute;
    inset: 0;
    background: #000 center/cover no-repeat;
    border-radius: 12px;
}

body {
    background: var(--bg) url("/static/images/fruit.jpg") center/cover fixed
        no-repeat;
}
[id] {
    scroll-margin-top: 84px;
}

@media (max-width: 640px) {
    .band--gift .band-inner,
    .band--commit .band-inner {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
    }
    .band--gift .band-title,
    .band--commit .band-title {
        order: 1;
    }
    .band--gift .band-thumb,
    .band--commit .band-thumb {
        order: 2;
        height: 240px;
    }
    .band--gift .band-text,
    .band--commit .band-text {
        order: 3;
    }
    .band--gift .band-inner,
    .band--gift .band-inner *,
    .band--commit .band-inner,
    .band--commit .band-inner * {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        white-space: normal !important;
    }
}

/* 準備中オーバーレイ */
.product-preparing .thumb {
    position: relative;
}
.product-preparing .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.product-preparing .thumb::before {
    content: "準備中";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.25em;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    backdrop-filter: blur(1px);
}
.product-preparing .to-cart {
    background: #666 !important;
    color: #eee !important;
    border: 1px solid #555 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
    pointer-events: none;
}
.product-preparing .to-cart:hover {
    filter: none;
}

/* ===== スマホ専用：白黒SVGアイコンのヘッダー＋背景最適化 ===== */
@media (max-width: 640px) {
    .site-header {
        padding: 10px 12px;
    }
    .brand-sub {
        display: none;
    }
    .brand-main {
        font-size: 20px;
    }

    .nav {
        gap: 12px;
    }

    /* テキストナビをアイコン化（カート以外） */
    .nav a:not(.cart-link) {
        font-size: 0;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    .nav a:not(.cart-link)::before {
        content: "";
        width: 22px;
        height: 22px;
        display: block;
        background-color: currentColor;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-size: contain;
        mask-size: contain;
    }
    /* 商品（ショッピングバッグ） */
    .nav a[href*="#products"]::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2v4'/%3E%3Cpath d='M18 2v4'/%3E%3Cpath d='M3 6h18l-1 14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2L3 6z'/%3E%3Cpath d='M8 10a4 4 0 0 0 8 0'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2v4'/%3E%3Cpath d='M18 2v4'/%3E%3Cpath d='M3 6h18l-1 14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2L3 6z'/%3E%3Cpath d='M8 10a4 4 0 0 0 8 0'/%3E%3C/svg%3E");
    }
    /* ギフト（プレゼント） */
    .nav a[href*="gift"]::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M3 12h18M12 8v13'/%3E%3Cpath d='M7 6c0-2 3-2 5 1l0 1M17 6c0-2-3-2-5 1l0 1'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M3 12h18M12 8v13'/%3E%3Cpath d='M7 6c0-2 3-2 5 1l0 1M17 6c0-2-3-2-5 1l0 1'/%3E%3C/svg%3E");
    }
    /* こだわり（星） */
    .nav a[href*="#kodawari"]::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 9 22 9 17 14 19 21 12 17 5 21 7 14 2 9 9 9'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 9 22 9 17 14 19 21 12 17 5 21 7 14 2 9 9 9'/%3E%3C/svg%3E");
    }
    /* 会社情報（ビル） */
    .nav a[href*="#company"]::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='16' height='13' rx='1'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3Cpath d='M8 11h2M8 15h2M14 11h2M14 15h2'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='16' height='13' rx='1'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3Cpath d='M8 11h2M8 15h2M14 11h2M14 15h2'/%3E%3C/svg%3E");
    }

    /* カート既存SVGの微調整 */
    .cart svg {
        width: 20px;
        height: 20px;
    }
    .cart #cart-count {
        font-size: 12px;
    }

    /* 背景のボケ軽減 */
    body {
        background-attachment: scroll;
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
    }
}
