﻿.brand-logo {
    position: relative;
    top: -10px;
}

/* クリック可能なカードにする */
.product-editor-panel {
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease;
}

    .product-editor-panel:hover {
        transform: translateY(-1px);
    }

/* 未選択の見た目 */
.product-label .product-card {
    border: 1px solid rgba(0,0,0,.1);
    margin-bottom: 1rem;
}

/* 商品選択画像が縦長でもカード内に収まるよう高さを制限する */
.product-label .product-card .card-img-top {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background-color: #fff;
}

/* 選択時の見た目（枠＋影） */
.product-label.is-selected .product-card {
    border-width: 2px;
    border-color: var(--bs-primary);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
}

/* 選択時のチェックバッジ */
.selected-badge {
    display: none;
}

.product-label.is-selected .selected-badge {
    display: inline-flex;
}

.svg-wrapper {
    position: relative;
}

#editor-svg {
    position: absolute;
    left: 50%;
    /*transition: transform 0.2s ease-out;*/
}

.empty-frame-placeholder-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.empty-frame-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px dashed #cfd3df;
    border-radius: 8px;
    background: rgba(251, 251, 253, 0.92);
    color: #6a7690;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.empty-frame-placeholder.is-selected {
    border-color: #6a7690;
}

.empty-frame-placeholder__iconWrap {
    position: relative;
    line-height: 1;
}

.empty-frame-placeholder__icon {
    color: #b8b8c8;
}

.empty-frame-placeholder__plus {
    position: absolute;
    right: -0.2em;
    bottom: -0.15em;
    font-size: 0.55em;
    color: #8f97ab;
    background: #fbfbfd;
    border-radius: 999px;
}

.empty-frame-placeholder__label {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

#footer-control {
    z-index: 99;
}

/* 共通スタイル */
.step {
    color: #666;
}

.select-image-list {
    width: 160px;
    height: 470px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
    text-align: center;
    padding: 10px 12px;
}

    .select-image-list .image-info {
        position: relative;
        width: 100%;
        padding: 5px 10px;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 8px;
    }

        .select-image-list .image-info i {
            position: absolute;
            left: 6px;
            top: 6px;
            color: gray;
        }

        .select-image-list .image-info span {
            display: block;
            font-size: 0.75em;
        }

    /* 1アイテム内も中央寄せ */
    .select-image-list .thumb-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 12px;
    }

    /* サムネ枠（正方形） */
    .select-image-list .thumb {
        position: relative;
        width: var(--thumb-size, 96px);
        aspect-ratio: 1 / 1;
        border-radius: 8px;
        overflow: hidden;
        background: #f3f3f3;
        margin-left: auto;
        margin-right: auto;
    }

    /* 選択中（エディタに表示している画像）のサムネを縁取り */
    .select-image-list .thumb-item--active .thumb {
        box-shadow: 0 0 0 3px var(--bs-primary);
    }

    .select-image-list .thumb-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* 画像を正方形にフィット（切り抜き） */
    .select-image-list .thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 右上の削除ボタン */
    .select-image-list .thumb-delete {
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 20px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: none;
        display: grid;
        place-items: center;
        line-height: 1;
        cursor: pointer;
        color: red;
    }

        /* アイコンのサイズ感（Bootstrap Icons） */
        .select-image-list .thumb-delete i {
            font-size: 20px;
        }

    /* メモ（サムネ下） */
    .select-image-list .thumb-note {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.2;
        word-break: break-word;
        color: #555;
        text-align: center;
    }

    /* ボタンも中央 */
    .select-image-list .btn-next {
        align-self: center;
        width: 100%;
        flex-shrink: 0;
    }

.editor-panel .line-info {
    position: relative;
    text-align: left;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    margin-left: 16px;
}

    .editor-panel .line-info span {
        display: block;
        font-size: 0.75em;
    }

.covered-warning-border {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
}

.covered-warning {
    font-size: 12px;
    position: relative;
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 警告表示の高さを固定し、表示切り替えでも下の操作ボタン位置を動かさない */
.editor-warning-slot {
    min-height: 3.25rem;
    /*margin-top: 0.5rem;*/
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.editor-warning-slot .covered-warning {
    width: 100%;
    max-width: fit-content;
    text-align: center;
    margin: 0 auto;
}

.editor-warning-slot .covered-warning.is-hidden {
    visibility: hidden;
}


/* aria-current="step" が付いた要素だけ太字＋色を濃く */
.step[aria-current="step"] {
    font-weight: bold;
    color: #000;
}

footer {
    display: none;
}

.print_image_list_row {
    min-height: 220px;
}

.resize-handle {
    cursor: nwse-resize;
}

/* 点滅 */
.blinking {
    -webkit-animation: blink 1s ease-in-out infinite alternate;
    -moz-animation: blink 1s ease-in-out infinite alternate;
    animation: blink 1s ease-in-out infinite alternate;
}

/* 数量入力の画像 */
.fit {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
}

@-webkit-keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.image-box {
    position: relative;
    /*width: 100px;*/
}

    .image-box img {
        width: 100px;
    }

    .image-box i {
        font-size: 20px;
    }

.image-trash {
    position: absolute;
    /*top: 5px;*/
    right: 16px;
    color: red;
}

.bi-x-square::before {
    background-color: white;
}

.image-set {
    position: absolute;
    top: 50px;
    /*        right: 0px;
    */
}

[v-cloak] {
    display: none;
}

.valign-center {
    display: flex;
    align-items: center;
}

:root {
    --radius: 12px;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --brand: #e91e63; /* 見出しアクセント */
    --bg: #ffffff;
    --item-hover: #fdf2f8;
    --item-selected: #fde7f1;
    --shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* トリガー */
.sc {
    position: relative;
}

    .sc select {
        /* 画面には出さないがフォーム送信用に保持 */
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
    }

.sc__button {
    width: 100%;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 44px 12px 14px;
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

    .sc__button:after {
        /*            content: "";
        */ position: absolute;
        right: 14px;
        top: 50%;
        width: 10px;
        height: 10px;
        /*            border-right: 2px solid #9ca3af;
                    border-bottom: 2px solid #9ca3af;
                    transform: translateY(-65%) rotate(45deg);
        */
    }

    .sc__button[aria-expanded="true"]:after {
        transform: translateY(-35%) rotate(-180deg);
    }

    .sc__button small {
        color: var(--muted);
        font-size: 12px;
        display: block;
    }

/* メニュー */
.sc__menu {
    position: absolute;
    z-index: 50;
    margin-top: 8px;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
}

    .sc__menu[aria-hidden="false"] {
        display: block;
    }

.sc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    max-height: 380px;
    overflow: auto;
}

.sc__group {
    padding: 10px;
    border-radius: 10px;
}

    .sc__group h3 {
        margin: 0 0 8px;
        font-size: 14px;
        color: var(--brand);
    }

.sc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.sc__option {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid transparent;
    cursor: pointer;
}

    .sc__option:hover {
        background: var(--item-hover);
        border-color: #fbcfe8;
    }

    .sc__option[aria-selected="true"] {
        background: var(--item-selected);
        border-color: #f48fb1;
    }

.sc__label {
    font-weight: 700;
}

.sc__desc {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

/* 補助テキスト */
.help {
    color: var(--muted);
    font-size: 12px;
    margin-top: 10px;
}

#contentwrap {
    flex-grow: 1;
}

/* ユーザーが簡易表示を希望する場合の配慮 */
@media (prefers-reduced-motion: reduce) {
    .wrapper {
        transition: none;
    }
}

#sideMenu {
    max-width: 260px;
    /*        background-color: rgba(0, 0, 0, 0.5);
    */
}

.num {
    width: 75px;
}

.dpad {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-template-rows: repeat(3, 56px);
    gap: 8px;
    width: fit-content;
}

.dpad-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem; /* 角丸はお好みで */
}

.up {
    grid-column: 2;
    grid-row: 1;
}

.left {
    grid-column: 1;
    grid-row: 2;
}

.mid {
    grid-column: 2;
    grid-row: 2;
}

.right {
    grid-column: 3;
    grid-row: 2;
}

.down {
    grid-column: 2;
    grid-row: 3;
}

.ctrl-panel {
    width: 210px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    text-align: left;
}

    .ctrl-panel > small {
        display: block; /* 下に要素が来るのでブロック化 */
        margin-bottom: 8px; /* spanの下のスペース */
    }

    .ctrl-panel > input {
        margin-bottom: 16px;
    }

    .ctrl-panel > div {
        display: flex; /* ボタン横並び */
        gap: 8px; /* ボタン間のスペース */
    }

        .ctrl-panel > div > button {
            flex: 1 1 0; /* 2つを同じ長さ（同じ幅）にする */
            height: 48px;
        }

            .ctrl-panel > div > button i {
                font-size: 24px
            }

        .ctrl-panel > div.grid3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
        }

.btn {
    height: 48px;
}

#footer-control .btn {
    width: 33%;
}

#viewer-dialog {
    width: 75%;
}

/* ハーフ（高さ50%）にする */
.offcanvas-bottom.half-sheet {
    height: 50vh;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    /* ★アニメーションを明示（下からスライド） */
    transform: translateY(100%);
    transition: transform .28s ease;
    will-change: transform;
}

    /* 表示中（Bootstrapは showing/show を使う） */
    .offcanvas-bottom.half-sheet.showing,
    .offcanvas-bottom.half-sheet.show {
        transform: translateY(0);
    }

    /* 非表示へ（Bootstrapは hiding を使う） */
    .offcanvas-bottom.half-sheet.hiding {
        transform: translateY(100%);
    }

.premium-title {
    font-family: "Zen Antique Soft", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
    /*font-weight: 700;*/
    letter-spacing: 0.1em;
    font-size: clamp(24px, 2.7vw, 32px);
}

/* 注文ヘッダーはスマホで折り返して商品名の見切れを防ぐ。 */
#global-nav .navbar-brand.navbar-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
}

#global-nav .navbar-brand.navbar-link > a {
    flex: 0 0 auto;
}

#global-nav .navbar-brand.navbar-link > .premium-title {
    flex: 1 1 auto;
    min-width: 0;
}

/* 全体 */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    line-height: 1;
}

    /* 通常ステップ */
    .stepper .step {
        color: #666;
        font-weight: 500;
        padding: 2px 0; /* レイアウト安定用 */
    }

    /* 区切り記号 */
    .stepper .sep {
        color: #bbb;
    }

    /* 現在ステップ（class でも aria-current でも可） */
    .stepper .is-current,
    .stepper [aria-current="step"] {
        color: #0a6; /* ブランド色に合わせて調整 */
        font-weight: 700;
        background: #e9f6ef;
        border: 1px solid #bfe6cf;
        padding: 6px 10px;
        border-radius: 999px; /* ピル型 */
    }

    /* 現在以外は少し抑える（任意） */
.stepper .step:not(.is-current):not([aria-current="step"]) {
    opacity: 0.75;
}

@media (max-width: 767.98px) {
    /* スマホでは商品名を詰めて1行に収めやすくする。 */
    #global-nav .navbar-brand.navbar-link > .premium-title {
        margin-left: 0 !important;
        font-size: clamp(18px, 5.6vw, 24px);
        letter-spacing: 0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ステッパーは次の行へ送って横幅を確保する。 */
    #global-nav .navbar-brand.navbar-link > order-stepper {
        flex: 1 0 100%;
        margin-left: 0;
    }

    .stepper {
        gap: 10px;
        font-size: 13px;
        flex-wrap: nowrap;
    }

    .stepper .is-current,
    .stepper [aria-current="step"] {
        padding: 5px 8px;
    }

    /* スマホでは商品選択画像の高さをさらに抑える */
    .product-label .product-card .card-img-top {
        max-height: 280px;
    }
}


/* もし reduced-motion が原因で無効化されている場合（任意）
     ※アクセシビリティ的には尊重が推奨。必要なときだけ。 */
@media (prefers-reduced-motion: reduce) {
    .offcanvas-bottom.half-sheet {
        transition: transform .28s ease;
    }
}

/* 見た目（任意） */
.sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    margin: 8px auto 0;
}
    
input.form-range::-webkit-slider-runnable-track {
    background-color: #c5ccd6 !important;
 }

input.form-range::-moz-range-track {
    background-color: #c5ccd6 !important;
}

@media screen and (max-width: 991px) {
    #sheetEdit.offcanvas-bottom.half-sheet {
        height: 38vh;
        min-height: 260px;
    }

    #sheetEdit .offcanvas-header {
        padding-top: 0.5rem;
        padding-bottom: 0.25rem !important;
    }

    #sheetEdit .offcanvas-body {
        padding-top: 0.25rem !important;
        padding-bottom: 0.75rem;
    }

    #footer-control .editor-panel-body {
        display: block;
    }

    #footer-control .btn {
        width: 48%;
    }

    /* スマホ幅では仕上がり確認を上段中央、戻る/数量入力を下段左右に分離する */
    #footer-control .mobile-preview-actions {
        margin-bottom: 0.75rem;
    }

    #footer-control .mobile-footer-actions {
        display: flex;
        justify-content: space-between;
    }

    #footer-control .mobile-footer-actions .btn,
    #footer-control .mobile-preview-actions .btn {
        float: none !important;
    }

    #viewer-dialog {
        width: 100%;
    }

    .w-33 {
        width: 33%;
    }

    .select-image-list {
        width: 100%;
        height: fit-content;
        overflow-y: auto;
        border: 1px solid var(--border);
        border-radius: 12px;
        align-items: center;
        text-align: center;
        padding: 10px 12px;
    }

        .select-image-list .grid2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

    .ctrl-panel {
        width: 100%;
        justify-items: center;
        margin-bottom: 0.5rem;
    }

        .ctrl-panel > small {
            width: 100%;
            margin-bottom: 0.25rem;
            font-size: 0.9rem;
        }

        .ctrl-panel > div {
            display: flex; /* ボタン横並び */
            gap: 6px; /* ボタン間のスペース */
        }

            .ctrl-panel > div > button {
                flex: 1 1 0; /* 2つを同じ長さ（同じ幅）にする */
                height: 48px;
            }

    .grid3 {
        width: 186px;
    }

    #sheetEdit .btn-group.nav-tabs {
        margin-bottom: 0.5rem !important;
    }

    #sheetEdit .form-range {
        margin-bottom: 0.5rem;
    }

    #sheetEdit .tab-content .row {
        --bs-gutter-y: 0.5rem;
    }

    .nav-tabs .nav-link.btn-nav {
        background-color: rgba(255, 255, 255, .12);
        border-color: #c8c8c8;
        color: #000;

        &:hover,
        &:focus {
            background-color: #e3e3e3;
            border-color: #b5b5b5;
            color: #000;
        }

        &.active,
        &[aria-selected="true"] {
            background-color: #f9d06d;
            border-color: #f9d06d;
            color: #000;
        }

        &:focus-visible {
            box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .25);
        }
    }

    .editor-warning-slot {
        min-height: 4rem;
        /*margin-top: 0.75rem;*/
        padding-inline: 0.5rem;
    }
}

@media screen and (max-width: 991px) and (orientation: landscape) {
    #sheetEdit.offcanvas-bottom.half-sheet {
        height: 32vh;
        min-height: 220px;
    }
}

/* list container */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* card row */
.order-item {
    padding: 14px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
}

/* fixed thumbnail */
.order-thumb {
    position: relative;
    width: 160px;
    aspect-ratio: 1 / 1; /* 正方形にしたいなら 1/1 */
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
}

.order-thumbLink {
    display: block;
    width: 100%;
    height: 100%;
}

.order-thumbImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* icon actions on thumb */
.order-thumbActions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.order-iconBtn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
}

.order-title {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.order-titleLabel {
    font-size: 12px;
    color: #666;
}

.order-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.order-qtyLabel {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.order-qtyValue {
    display: inline-block;
    min-width: 2.5em;
    text-align: center;
    padding: 0 8px;
    line-height: 48px;
}

.order-subtotal {
    line-height: 1.3;
    word-break: break-word;
}

.order-subtotalLabel {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.order-subtotalValue {
    font-weight: 600;
    display: block;
}

.order-list-footer .btn {
    width: 33%;
    /*font-size: clamp(11px, 1.3vw, 16px);*/
}

@media screen and (max-width: 769px) {
    .order-list-footer .editor-panel-body {
        flex-direction: row-reverse;
    }

    .order-list-footer .btn {
        width: 100%;
    }
}

@media screen and (max-width: 769px) {
    .order-item {
        flex-direction: column;
        align-items: stretch;
    }

    .order-thumb {
        width: 100%;
        /*aspect-ratio: 16/9;*/
    }
}

.w-48 {
    width: 48%;
}

.mobile-editor-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-editor-actions__primary {
    display: flex;
    justify-content: space-between;
}

.mobile-editor-actions__secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.mobile-editor-actions__reset {
    align-self: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: underline;
}

.finish-preview-dialog {
    width: min(92vw, 960px);
    max-width: 960px;
    height: min(92vh, calc(100dvh - 2rem));
    max-height: min(92vh, calc(100dvh - 2rem));
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .24);
}

.finish-preview-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

.finish-preview-dialog__body {
    padding: 1rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.finish-preview-dialog__header {
    text-align: center;
    flex: 0 0 auto;
}

.finish-preview-dialog__canvasWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    padding: 0.75rem;
}

.finish-preview-dialog__canvas {
    display: block;
    /*max-width: 100%;*/
    max-height: 100%;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: #fff;
}

.finish-preview-dialog__body > .text-center {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.finish-preview-dialog__loading,
.finish-preview-dialog__error {
    color: #6c757d;
    font-size: 0.95rem;
}

.finish-preview-dialog__error {
    color: #b02a37;
}

.editor-subactions {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
   /*margin-top: 1rem;*/
}

.editor-subactions__link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: underline;
    display: inline;
    margin-right: 1rem;
}

.none-touch-action * {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.allow-pan-y * {
    touch-action: pan-y;
}

.floating-help-button {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #cbcbcb;
    background: #e3e3e3;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    text-decoration: none;
}

/* ホバーできるPCだけ hover を適用 */
@media (hover: hover) {
    .floating-help-button:hover {
        background: #eaeaea;
    }
}

/* スマホ向け */
@media (max-width: 767px) {
    .floating-help-button {
        width: 52px;
        height: 52px;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        font-size: 22px;
    }
}