*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.food-order-page {
    font-family: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, sans-serif;
    background: #f5f3ef;
    color: #0f0f0f;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

/* ===== ヘッダー ===== */
.fo-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #ede9e3;
}

.fo-header__back {
    font-size: 0.78rem;
    color: #888;
    text-decoration: none;
}

.fo-header__title {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.fo-header__spacer { width: 60px; }

/* ===== カテゴリタブ ===== */
.fo-tabs {
    position: sticky;
    top: 49px;
    z-index: 99;
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #ede9e3;
    -webkit-overflow-scrolling: touch;
}

.fo-tabs::-webkit-scrollbar { display: none; }

.fo-tab {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.fo-tab.is-active {
    color: #0f0f0f;
    border-bottom-color: #c8973a;
}

/* ===== メインコンテンツ ===== */
.fo-main {
    padding: 8px 0;
}

.fo-note {
    padding: 8px 20px 16px;
    font-size: 0.72rem;
    color: #999;
}

/* ===== セットドリンクバナー（旧・ドリンクタブ内） ===== */
.fo-set-banner {
    background: linear-gradient(135deg, #fff8ed, #fff3e0);
    border-left: 3px solid #f97316;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: #555;
    letter-spacing: 0.03em;
}

.fo-set-banner b {
    color: #f97316;
    font-weight: 800;
}

/* ===== セットドリンク告知（常時表示・ヘッダー直下） ===== */
.fo-set-promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(120deg, #fff5d6 0%, #ffe0b2 50%, #ffcb91 100%);
    background-size: 200% 100%;
    animation: foPromoShimmer 6s ease-in-out infinite;
    border-bottom: 1px solid rgba(217, 75, 8, 0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    z-index: 1;
}
.fo-set-promo::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -40%;
    width: 35%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: rotate(20deg);
    animation: foPromoSweep 5s ease-in-out infinite;
    pointer-events: none;
}
.fo-set-promo__icon {
    font-size: 1.55rem;
    flex-shrink: 0;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(217,75,8,0.25));
}
.fo-set-promo__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    z-index: 1;
}
.fo-set-promo__head {
    font-size: 0.72rem;
    color: #7a3a08;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.fo-set-promo__deal {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 1.45rem;
    color: #d94b08;
    letter-spacing: 0.04em;
    font-weight: 700;
    line-height: 1.05;
    margin-top: 2px;
}
.fo-set-promo__cta {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #d94b08;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(217,75,8,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 1;
    white-space: nowrap;
}
.fo-set-promo__cta:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(217,75,8,0.35);
}
@keyframes foPromoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes foPromoSweep {
    0%        { left: -40%; }
    55%, 100% { left: 130%; }
}
@media (max-width: 380px) {
    .fo-set-promo { padding: 10px 12px; gap: 8px; }
    .fo-set-promo__head { font-size: 0.66rem; }
    .fo-set-promo__deal { font-size: 1.25rem; }
    .fo-set-promo__cta { padding: 7px 10px; font-size: 0.66rem; }
}

/* ===== HOT/ICE バリアントボタン ===== */
.fo-variant {
    display: flex;
    gap: 0;
    margin: 5px 0 3px;
    background: #f0ece6;
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}

.fo-variant-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    transition: all 0.18s;
    letter-spacing: 0.05em;
}

.fo-variant-btn[data-val="HOT"].is-active {
    background: #e05a33;
    color: #fff;
    box-shadow: 0 1px 4px rgba(224,90,51,0.35);
}

.fo-variant-btn[data-val="ICED"].is-active,
.fo-variant-btn[data-val="SODA"].is-active {
    background: #2a8fd4;
    color: #fff;
    box-shadow: 0 1px 4px rgba(42,143,212,0.35);
}

/* ===== メニューアイテム ===== */
.fo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    margin: 0 0 1px;
    transition: background 0.15s;
}

.fo-item.is-selected {
    background: #fffdf8;
    border-left: 3px solid #c8973a;
    padding-left: 13px;
}

/* 写真あり */
.fo-item__img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 写真なし（テキストのみ） */
.fo-item--text .fo-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* 商品情報 */
.fo-item__info {
    flex: 1;
    min-width: 0;
}

.fo-item__name {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-bottom: 2px;
}

.fo-item__desc {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-item__price {
    font-family: 'Renner*', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f0f0f;
}

/* ===== 数量セレクタ ===== */
.fo-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.fo-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d0ccc6;
    background: #fff;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}

.fo-qty-btn:active {
    background: #0f0f0f;
    border-color: #0f0f0f;
    color: #fff;
}

.fo-qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Renner*', sans-serif;
}

/* 数量が0の時は薄く */
.fo-item:not(.is-selected) .fo-qty-minus { opacity: 0.3; }

/* ===== フローティングカートバー ===== */
.fo-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #0f0f0f;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.fo-cart.is-visible {
    transform: translateY(0);
}

.fo-cart__info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fo-cart__count {
    font-family: 'Renner*', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.fo-cart__label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin-right: 8px;
}

.fo-cart__total {
    font-family: 'Renner*', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.fo-cart__btn {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.18s;
}

.fo-cart__btn:active { background: #e06510; }

/* ===== 注文確認モーダル ===== */
.fo-confirm {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: flex-end;
}

.fo-confirm.is-open { display: flex; }

.fo-confirm__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: foFadeIn 0.2s ease;
}

.fo-confirm__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: foSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.fo-confirm__header {
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0ece6;
}

.fo-confirm__title {
    font-size: 0.95rem;
    font-weight: 700;
}

.fo-confirm__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0ece6;
    border: none;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fo-confirm__body {
    padding: 20px 20px 40px;
}

/* 注文アイテムリスト */
.fo-confirm__item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f3ef;
}

.fo-confirm__item--discount {
    color: #f97316;
    font-weight: 600;
}

.fo-confirm__total-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 800;
    font-size: 1rem;
    border-top: 2px solid #0f0f0f;
    margin-top: 4px;
}

/* サウナ選択 */
.fo-confirm__field {
    margin-top: 20px;
}

.fo-confirm__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.fo-confirm__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.fo-confirm__label-row .fo-confirm__label {
    margin-bottom: 0;
}

/* マップを見るボタン（ラベル右） */
.fo-map-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #fff;
    color: #333;
    border: 1.5px solid #d8d2c4;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    line-height: 1;
}
.fo-map-btn:active {
    background: #f5f3ee;
    border-color: #b8b0a0;
    transform: translateY(1px);
}

/* サウナマップ ポップアップ */
.fo-map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.fo-map-modal.is-open {
    display: flex;
    animation: foFadeIn 0.2s ease both;
}
.fo-map-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}
.fo-map-modal__panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: foSlideUp 0.25s cubic-bezier(0.22, 0.7, 0.22, 1);
}
.fo-map-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #ece6dc;
    flex-shrink: 0;
}
.fo-map-modal__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1714;
    letter-spacing: 0.05em;
}
.fo-map-modal__close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #555;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.fo-map-modal__body {
    flex: 1;
    overflow: auto;
    padding: 12px;
    background: #faf9f5;
    -webkit-overflow-scrolling: touch;
}
.fo-map-modal__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.fo-map-modal__hint {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    margin-top: 10px;
    letter-spacing: 0.04em;
}

.fo-confirm__select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    font-size: 0.88rem;
    background: #faf9f7;
    color: #0f0f0f;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.fo-confirm__select:focus {
    outline: none;
    border-color: #c8973a;
}

/* 送信メッセージ */
.fo-confirm__msg-wrap {
    margin-top: 16px;
}

.fo-confirm__msg {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.7;
    background: #faf9f7;
    color: #555;
    resize: none;
    font-family: inherit;
}

/* LINE送信ボタン */
.fo-confirm__send {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    background: #06C755;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(6, 199, 85, 0.35);
    transition: transform 0.18s, box-shadow 0.18s;
}

.fo-confirm__send:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.45);
}

.fo-confirm__hint {
    text-align: center;
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 10px;
}

/* ===== 2段階注文フロー（コピー→LINE開く/閉じる） ===== */
.fo-step {
    margin-top: 20px;
    animation: foFadeIn 0.25s ease both;
}
.fo-step__guide {
    text-align: center;
    font-size: 0.78rem;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.65;
}
.fo-step__guide--strong {
    color: #333;
    font-size: 0.82rem;
    margin: 14px 0 14px;
}
.fo-step__guide--strong strong {
    color: #06C755;
    font-weight: 700;
}

/* コピーボタン（プライマリ・大型） */
.fo-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(180deg, #1c1c1c 0%, #000 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.fo-copy-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.fo-copy-btn__icon {
    font-size: 1.2rem;
}
.fo-copy-btn__label {
    font-size: 0.95rem;
}

/* コピー済みマーク（成功表示） */
.fo-copied-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 6px;
    background: #f0fdf4;
    border: 1.5px solid #06C755;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #047a37;
}
.fo-copied-mark__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #06C755;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

/* 閉じるボタン（セカンダリ） */
.fo-close-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: #fff;
    color: #333;
    border: 1.5px solid #e5e0d8;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.fo-close-btn:active {
    background: #f5f3ee;
    border-color: #ccc;
}

/* もう一度コピー（テキストリンク風） */
.fo-recopy-btn {
    display: block;
    margin: 12px auto 0;
    padding: 6px 12px;
    background: transparent;
    color: #888;
    border: none;
    font-size: 0.74rem;
    text-decoration: underline;
    cursor: pointer;
}
.fo-recopy-btn:hover {
    color: #333;
}

/* ===== トースト通知 ===== */
.fo-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #0f0f0f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    animation: foToast 4s ease forwards;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

@keyframes foToast {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes foFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes foSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
