  /* ベース */
        :root {
            --green: #8BC34A;
            --panel: #FFF3E0;
            --text: #4E342E;
            --accent: #FF7043;
            --accent-dark: #E64A19;
            --gray: #6b7280;
            --black: #222;
            --white: #fff;
            --radius: 16px;
            --shadow: 0 8px 20px rgba(0, 0, 0, .08);
            --border: #e5e7eb;
        }

        /* 上部：総在庫数帯 */
        .stock-hero {
            background: #ffa454;
            color: #111;
            padding: 24px 20px 16px;
            border-radius: 20px;
            margin: 0 0 18px;
            text-align: center;
            position: relative;
        }

        .stock-hero .lead {
            font-weight: 700;
            font-size: clamp(14px, 1.6vw, 18px);
            letter-spacing: .02em;
            line-height: 1.5;
        }

        .stock-hero .lead .unit {
            margin-left: .25em;
        }

        .digits {
            display: inline-flex;
            gap: 8px;
            margin: 0 6px;
            vertical-align: middle;
        }

        .digits .digit {
            display: inline-flex;
            width: 46px;
            height: 46px;
            align-items: center;
            justify-content: center;
            background: #FFEB3B;
            font-weight: 800;
            font-size: 28px;
            border-radius: 10px;
            line-height: 1;
            box-shadow: var(--shadow);
        }

        @media (min-width:640px) {
            .digits .digit {
                width: 54px;
                height: 54px;
                font-size: 32px;
            }
        }

        /* 検索ボックスパネル */
        .search-panel {
            background: var(--panel);
            border-radius: 20px;
            padding: 22px 18px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(0, 0, 0, .04);
        }

        .search-title {
            color: var(--accent);
            font-weight: 900;
            font-size: 18px;
            margin: 8px 0 14px;
        }

        .select-lists .select-list {
            margin-bottom: 14px;
        }

        .select-list label {
            display: inline-block;
            color: var(--text);
            font-weight: 700;
            margin-bottom: 6px;
        }

        /* select / input 共通 */
        select,
        input[type="text"] {
            width: 100%;
            background: #fff;
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 12px 14px;
            font-size: 16px;
            transition: border-color .15s, box-shadow .15s;
        }

        select:focus,
        input[type="text"]:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(255, 112, 67, .15);
        }

        select:disabled {
            background: #f3f4f6;
            color: #9ca3af;
        }

        /* カウント表示 */
        .count-wrap {
            margin: 16px 0 6px;
            font-weight: 800;
            font-size: 18px;
            text-align: right;
        }

        .count-wrap span {
            font-variant-numeric: tabular-nums;
        }

        /* ボタン */
        .buttons {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
            justify-content: right;
        }

        .black-button,
        .red-button {
            appearance: none;
            border: none;
            cursor: pointer;
            padding: 10px 18px;
            font-weight: 800;
            border-radius: 12px;
            box-shadow: var(--shadow);
            height: auto;
        }

        .black-button {
            background: #374151;
            color: #fff;
            width: 175px;
        }

        .black-button:hover {
            filter: brightness(.95);
        }

        .red-button {
            background: var(--accent);
            color: #fff;
            width: 200px;
        }

        .red-button:hover {
            background: var(--accent-dark);
        }

        /* —— モーダル —— */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .45);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal {
            width: min(680px, 92vw);
            max-height: 80vh;
            overflow: auto;
            background: #fff;
            border-radius: 20px;
            padding: 18px;
            box-shadow: var(--shadow);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .modal-title {
            font-weight: 900;
            font-size: 18px;
        }

        .modal-close {
            background: #f3f4f6;
            border: none;
            border-radius: 10px;
            width: 36px;
            height: 36px;
            font-size: 18px;
            cursor: pointer;
        }

        .model-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        @media (min-width:640px) {
            .model-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .model-btn {
            background: #fff;
            border: 2px solid var(--border);
            border-radius: 14px;
            padding: 12px;
            cursor: pointer;
            text-align: center;
            font-weight: 700;
            transition: transform .05s, border-color .15s, box-shadow .15s;
        }

        .model-btn:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
        }

        .model-btn:active {
            transform: translateY(1px);
        }

        /* 補助：レイアウト */
        .main-select .select-lists-inner {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .select-lists-inner {
            flex-direction: column;
        }

        .w4em {
            width: auto;
            min-width: 5em;
            display: block;
        }

        .w6em {
            width: auto;
            min-width: 6em;
            display: block;
        }

        .w90 {
            width: 100%;
        }

        .helper {
            color: var(--gray);
            font-size: 12px;
            margin-top: 4px;
        }

        @media (max-width:640px) {
            .select-lists-inner select {
                padding-right: 0;
            }
        }