temselect.css
/* ============================================
   itemselect.css - 新デザイン適用CSS
   既存CSSを上書きする形で新レイアウトを適用
   ============================================ */

/* ■ 画面幅の拡大 */
.container.item_select {
    max-width: 1400px;
    width: 95vw;
}
.container.item_select .item_select {
    padding: 10px 20px;
}

/* ■ ヘッダー構造（2026-04-25: sticky は step-nav のみに適用、header 全体はスクロールアウト可） */
header {
    position: static !important;
    height: auto !important;
}
#nsd-sitetitle {
    position: relative;
    z-index: 5;
}
div#main\=div.container.item_select {
    padding-top: 20px !important;
}

/* ■ ステップナビゲーション（sticky 固定、2026-04-25 ユーザ指示） */
.step-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 8px 0;
    margin: 0;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.step-nav__item {
    position: relative;
    padding: 6px 30px;
    font-size: 14px;
    color: #888888;
    font-weight: normal;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}
.step-nav__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #555555;
}
.step-nav__item--active {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 4px solid #e60012;
    padding-bottom: 3px;
}

/* ■ 再開メニュー折りたたみ */
.resume-menu {
    margin: 10px 0;
    text-align: center;
}
.resume-menu__toggle {
    background: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: background-color 0.3s;
}
.resume-menu__toggle:hover {
    background-color: #f5f5f5;
}
.resume-menu__toggle::after {
    content: ' \25BC';
    font-size: 10px;
}
.resume-menu__toggle[aria-expanded="true"]::after {
    content: ' \25B2';
}
.resume-menu__content {
    margin-top: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 4px;
}

/* ■ TOP/BOTTOM選択エリア */
.selection-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.selection-slot {
    display: flex;
    align-items: center;
    width: 340px;
    min-height: 62px;
    border: 1px solid #e5e5e5;
    border-radius: 999px; /* PDF 準拠: ピル型 */
    padding: 10px 20px;
    background-color: #ffffff;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.selection-slot--empty {
    border-color: #e5e5e5;
    background-color: #ffffff;
    color: #b5b5b5;
}
.selection-slot--filled {
    border-color: #e60012;
    border-style: solid;
    background-color: #fff5f5;
    box-shadow: 0 2px 8px rgba(230, 0, 18, 0.1);
}
.selection-slot__icon {
    text-align: center;
    margin-right: 12px;
    min-width: 60px;
}
.selection-slot__icon i {
    font-size: 30px;
}
.selection-slot__icon .slot-label {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    display: block;
    margin-top: 2px;
}
.selection-slot__info {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.selection-slot__placeholder {
    color: #aaaaaa;
    font-size: 13px;
}
.selection-slot__item-no {
    font-family: Eurostile, sans-serif;
    font-weight: bold;
    color: #333;
}
.selection-slot__item-name {
    color: #555;
    font-size: 13px;
}

/* シミュレーション開始ボタン（PDF 準拠: 赤ピル型 + ▶ + テキスト） */
.sim-start-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 280px;
    height: 62px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 999px; /* ピル型 */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 0 20px;
}
.sim-start-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
}
.sim-start-btn__label {
    line-height: 1;
}
.sim-start-btn--disabled {
    background-color: #999999 !important;
    color: rgba(255, 255, 255, 0.84) !important;
    cursor: default;
}
.sim-start-btn--active {
    background-color: #e60012 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}
.sim-start-btn--active:hover {
    background-color: #c00010 !important;
    box-shadow: 0 6px 16px rgba(230, 0, 18, 0.4);
}

/* ■ ヘッダー周りのアクションボタン */
.header-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}

/* ■ 商品カード */
.nsd-selectbox {
    width: 200px !important;
    padding: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}
.nsd-selectbox:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ■ ポップオーバースタイル */
.popover {
    max-width: 300px;
    font-size: 13px;
}
.popover .item-popover-content {
    padding: 5px;
}
.popover .item-popover-content .item-popover-no {
    font-family: Eurostile, sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}
.popover .item-popover-content .item-popover-price {
    color: #e60012;
    font-weight: bold;
    margin-bottom: 4px;
}
.popover .item-popover-content .item-popover-material {
    color: #666;
    font-size: 12px;
}
.popover .item-popover-content .item-popover-type {
    display: inline-block;
    background-color: #333;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 4px;
}

/* ■ モーダル簡素化 */
#nsd-myModal1 .modal-content {
    border-radius: 8px;
    overflow: hidden;
}
#nsd-myModal1 .modal-header {
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    min-height: 10px;
}
#nsd-myModal1 .modal-body.nsd-mobox {
    padding: 15px;
}
#nsd-myModal1 .nsd-moimg {
    margin: 20px 15px 0;
}
#nsd-myModal1 #nsd-material-btn {
    padding: 15px 0;
}
#nsd-myModal1 #nsd-material-btn .nsd-btn-default {
    border-radius: 4px;
    font-size: 0.9em;
    margin: 5px 8px;
}
#nsd-myModal1 #area_material_1,
#nsd-myModal1 #area_material_2 {
    border-radius: 6px;
    margin: 5px;
}
#nsd-myModal1 #color_pallet_1,
#nsd-myModal1 #color_pallet_2 {
    margin: 5px 7px;
}
#nsd-myModal1 #color_pallet_1 li,
#nsd-myModal1 #color_pallet_2 li {
    width: 24px;
    height: 24px;
    margin: 2px;
    border-radius: 3px;
}

/* ■ フィルターエリアのコンパクト化 */
.nsd-select {
    font-size: 14px !important;
}
.nsd-lavel {
    font-size: 16px !important;
    padding: 0 3px;
    margin-bottom: 2px;
}

/* ■ How to USEセクション非表示化 */
#nsd-com_hto {
    display: none;
}

/* ■ お知らせエリア */
.news-area {
    overflow-y: auto;
    max-height: 60px;
    background-color: #fff;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.6;
}

/* ■ エラーメッセージ */
.notfound {
    font-size: 16px;
    margin: 10px 0;
}

/* ■ フッター簡素化 */
.nsd-footer {
    padding: 60px 0;
}
.nsd-footer ul.nsd-ffsize3 {
    display: none;
}

/* ■ 検索モーダル簡素化 */
.search-form {
    padding: 20px 30px;
}

/* ■ Task #7 (2026-05-18): Masonry → CSS Grid 移行
 *   ユーザ仕様: 固定高さで揃え + セットアップは縦 2 マス + object-fit:contain で SVG 縮小表示
 *   Masonry の動的高さ計算と imagesLoaded 待ちのタイミング起因のフィルタ後レイアウト崩れを根本解消
 *   案 b: itemselect_scale (Task #35) は <span> wrapper 内 transform:scale で維持、 box は overflow:hidden で枠固定
 */
#container {
    border: none !important;
    padding: 10px 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, 210px);
    grid-auto-rows: min-content;      /* 各行は内容高さ。 カードは下記 .box.col2 の height で 270px 固定し、 セパレータ行のみ内容高さに圧縮 (旧: 固定 270px でセパレータ行が 1 カード分の高さに引き伸ばされ過大ギャップ = BUG-054 後に顕在化) */
    grid-auto-flow: dense;            /* 空きセルを後続 box で詰める */
    gap: 16px;
    justify-content: center;
}
#item-list {
    display: contents;                /* #item-list は意味のみ、 grid item は #container 直下扱い */
}
.items-section {
    display: contents;
}
.items-section--setup .box.col2 {
    grid-row: span 2;                 /* セットアップは縦 2 マス分の枠 (= 270*2 + 16 gap = 556px) */
    height: 556px;                    /* grid-auto-rows: min-content 化に伴い明示。 .box.col2 (height:270px) より高 specificity で上書き */
}
.items-section-separator {
    grid-column: 1 / -1;              /* 全列スパン (区切りは横全幅) */
    display: flex;                    /* 線 + ラベルを横並び。 grid-auto-rows: min-content により行は内容高さに圧縮 (旧: 270px トラックに引き伸ばされ過大ギャップ) */
    align-items: center;
    gap: 20px;
    padding: 6px 12px;
    box-sizing: border-box;
}
.items-section-separator__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #b0b0b0 25%, #b0b0b0 75%, transparent);
}
.items-section-separator__label {
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2a2a2a;
    white-space: nowrap;
}
/* box 自体は枠固定、 内部の画像ラッパで scale + object-fit を制御 */
.box.col2 {
    width: 100%;
    height: 270px;                    /* grid-auto-rows: min-content 化に伴い明示 (旧: height:100% で 270px トラック依存)。 セット card は .items-section--setup .box.col2 が 556px で上書き */
    margin: 0;
    padding: 0;
    float: none;                      /* Masonry 時代の float:left を解除 (Grid と競合) */
    overflow: hidden;                 /* scale はみ出し防止 */
    box-sizing: border-box;
}
.box .center {
    width: 100%;
    height: calc(100% - 80px);        /* 下部アイコン + タイトル 80px ぶんを引いた高さを画像エリアに */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.box .center > span {
    display: flex;
    flex: 1;                          /* 単品は 1 つ、 セットは 2 つで均等配分 */
    align-items: center;
    justify-content: center;
    overflow: hidden;                 /* scale はみ出し防止 */
}
.box .center > span > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;              /* アスペクト比保持で枠内縮小 */
}
/* セット card の TOP/BOTTOM 画像を中央に詰めて配置 (旧: span が flex:1 で center を 2 等分し各画像が半分の中央に置かれ上下が大きく離れていた)。
   span を内容高さ (flex:0 1 auto) にし center の justify-content:center + gap で 2 画像を近接配置。 画像サイズは不変、 はみ出し時は flex-shrink で自動縮小。 */
.items-section--setup .box .center {
    gap: 24px;
}
.items-section--setup .box .center > span {
    flex: 0 1 auto;
}

/* ■ タイトルエリア簡素化 */
.nsd-select_h {
    padding: 10px 0 !important;
}
.nsd-eufont1,
.nsd-eufont2 {
    display: none;
}
.nsd-select_h .top_desc {
    display: none;
}

/* ■ 選択エリア旧スタイル非表示 */
.selected_top,
.selected_bottom,
.select_item {
    display: none !important;
}
.nsd-select_h2 .notice {
    display: none;
}

/* ■ 「使い方」ボタン枠線スタイル */
.nsd-help .togglebutton .nsd-tooltip {
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 4px 12px;
    color: #cccccc;
    font-size: 13px;
    text-decoration: none;
}
.nsd-help .togglebutton .nsd-tooltip:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ■ TOP/BOTTOMアイコンサイズ調整 */
.selection-slot__icon .nsd-icon-top,
.selection-slot__icon .nsd-icon-bottom {
    font-size: 40px;
}
.selection-slot--filled .selection-slot__icon .nsd-icon-top,
.selection-slot--filled .selection-slot__icon .nsd-icon-bottom {
    color: #e60012;
}

/* ■ 品番検索/ID呼び出しボタン配置調整 */
.header-actions .nsd-btn-default {
    font-size: 13px;
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid #cccccc;
    color: #666666;
    border-radius: 4px;
}
.header-actions .nsd-btn-default:hover {
    background-color: #f5f5f5;
    border-color: #999999;
}
.header-actions .nsd-btn-default .nsd-btn-icon {
    font-size: 16px;
    vertical-align: middle;
}

/* ■ フィルターエリア余白調整 */
.form-group.nsd-select {
    margin-bottom: 8px;
}

/* ■ 商品カードエリア上余白 */
#container.centered {
    margin-top: 10px;
}

/* ■ 空エラーメッセージ非表示 */
.notfound:empty {
    display: none;
}

/* ■ レスポンシブ対応 */
@media (max-width: 1200px) {
    .container.item_select {
        max-width: 100%;
        width: 100%;
        padding: 10px;
    }
    .selection-area {
        flex-direction: column;
        align-items: center;
    }
    .selection-slot {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================================
   PDF Page 1 トーン&マナー追加スタイル
   （2026-04-25 itemselect2 リデザイン実装）
   ============================================ */

/* ■ Lotto ブランドカラー変数（2026-04-29 Phase B で lotto-design-tokens.css に分離） */
@import url('lotto-design-tokens.css');

/* ■ ヘッダをブラックに */
#nsd-sitetitle {
    background-color: var(--lotto-black);
    padding: 10px 0;
}
/* ヘッダタイトル「Coloring and Marking Simulation / TEAM ORDER SYSTEM」は HTML 側で削除済み（PDF に存在しないため） */
#nsd-sitetitle .nsd-logo {
    display: flex;
    align-items: center;
}
#nsd-sitetitle .nsd-logo img {
    max-height: 24px;
    width: auto;
    display: block;
}

/* 管理画面リンク */
.nsd-admin-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.nsd-admin-link a {
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}

/* 「? 使い方」ボタン（PDF Page 1 準拠、丸角黒ボタン） */
.nsd-help {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.nsd-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}
.nsd-help-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: #ffffff !important;
}
.nsd-help-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}
.nsd-help-btn__label {
    line-height: 1;
}
/* 既存のチェックボックスは機能上必要（input[type=checkbox] ハンドラで tooltip 有効化）だが、
   UI では見せないため視覚的に隠す。display:none だとイベント発火しないため visibility:hidden を使用 */
.nsd-help-toggle-hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

/* ■ メインビジュアル (Task #8 / 2026-05-18: 旧 hero-section / hero-images / hero-image* / hero-lockup* 全撤去、
 *   simtop_bg.png 1 枚 (.hero-bg <img>) のみに簡素化、 LOTTO ロゴ overlay は背景画像に込み込み済の前提)
 */
.hero-bg {
    display: block;
    width: 100%;
    height: 360px;                    /* 旧 .hero-section と同等 */
    object-fit: cover;
    object-position: center center;
}
@media (max-width: 992px) {
    .hero-bg { height: 280px; }
}
@media (max-width: 576px) {
    .hero-bg { height: 220px; }
}

/* ■ ステップナビ現在段のアクセント色を Lotto レッドに */
.step-nav__item--active {
    border-bottom-color: var(--lotto-red);
}

/* ■ カテゴリタブ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 12px;
    justify-content: center;
}
.category-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background-color: transparent;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 20px;
    color: var(--lotto-gray-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.category-tab:hover {
    background-color: var(--lotto-gray-bg);
    border-color: #bbbbbb;
}
.category-tab--active {
    background-color: var(--lotto-black);
    border-color: var(--lotto-black);
    color: #ffffff;
    font-weight: bold;
}
.category-tab--active:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

/* ■ フィルタエリア（アコーディオン） */
.filter-area {
    margin: 10px 0 20px;
}
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #ffffff;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 4px;
    color: var(--lotto-gray-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-toggle:hover {
    background-color: var(--lotto-gray-bg);
}
.filter-toggle[aria-expanded="true"] {
    background-color: var(--lotto-gray-bg);
    border-color: #aaaaaa;
}
.filter-toggle .material-icons {
    font-size: 18px;
}
.filter-result-count {
    color: var(--lotto-red);
    font-weight: bold;
    font-size: 14px;
}
.filter-search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.filter-search-box .filter-search-icon {
    position: absolute;
    left: 8px;
    color: var(--lotto-gray-text);
    font-size: 18px;
    pointer-events: none;
}
.filter-search-box input {
    padding: 6px 10px 6px 32px !important;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 4px;
    font-size: 13px;
    width: 220px;
    height: auto !important;
    background-color: #ffffff !important;
}
.filter-search-box input:focus {
    border-color: var(--lotto-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.1);
}
.filter-sort-box {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-sort-label {
    font-size: 13px;
    color: var(--lotto-gray-text);
    margin: 0;
}
.filter-sort-box select {
    padding: 6px 10px !important;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 4px;
    font-size: 13px;
    background-color: #ffffff !important;
    min-width: 140px;
    height: auto !important;
}
.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background-color: transparent;
    border: 1px solid var(--lotto-gray-border);
    border-radius: 4px;
    color: var(--lotto-gray-text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-reset:hover {
    background-color: var(--lotto-gray-bg);
    color: var(--lotto-red);
    border-color: var(--lotto-red);
}
.filter-reset .material-icons {
    font-size: 16px;
}
.filter-collapse {
    margin-top: 10px;
}
.filter-body {
    padding: 16px;
    background-color: var(--lotto-gray-bg);
    border-radius: 8px;
    margin: 0;
}

/* ■ 色選択モーダル */
#color-select-modal .modal-dialog {
    max-width: 720px;
}
#color-select-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}
.color-modal__header {
    background-color: var(--lotto-gray-bg);
    border-bottom: 1px solid var(--lotto-gray-border);
    padding: 14px 20px;
}
.color-modal__header .modal-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--lotto-black);
    margin: 0;
}
.color-modal__body {
    padding: 24px;
}
.color-modal__preview {
    text-align: center;
    margin-bottom: 16px;
    min-height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.color-modal__preview-img {
    max-width: 240px;
    max-height: 200px;
}
.color-modal__info {
    text-align: center;
    margin-bottom: 20px;
}
.color-modal__base-model {
    display: block;
    font-family: Eurostile, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: var(--lotto-black);
    margin-bottom: 4px;
}
.color-modal__item-name {
    display: block;
    font-size: 13px;
    color: var(--lotto-gray-text);
}
.color-chip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 12px 0;
    justify-items: center;
}
.color-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.2s;
    border: 2px solid transparent;
    background-color: transparent;
}
.color-chip:hover {
    background-color: var(--lotto-gray-bg);
}
.color-chip--selected {
    border-color: var(--lotto-red);
    background-color: rgba(230, 0, 18, 0.05);
}
.color-chip__swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--lotto-gray-border);
    margin-bottom: 6px;
    display: block;
    position: relative;
    object-fit: cover;
    background-color: #fff;
}
.color-chip--selected .color-chip__swatch {
    outline: 2px dashed var(--lotto-red);
    outline-offset: 3px;
}
.color-chip__code {
    font-family: Eurostile, sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: var(--lotto-black);
    line-height: 1;
}
.color-chip__label {
    font-size: 11px;
    color: var(--lotto-black);
    line-height: 1.2;
    text-align: center;
    word-break: break-all;
    max-width: 80px;
    margin-top: 2px;
}

/* セットアイテム配色モーダル（TOP / BOTTOM 並列選択） */
#setup-color-modal .modal-dialog { max-width: 1080px; }
#setup-color-modal .modal-content { border-radius: 12px; overflow: hidden; border: none; }
.setup-color__side {
    padding: 14px;
    border-right: 1px solid var(--lotto-gray-border);
}
.setup-color__side:last-child { border-right: 0; }
.setup-color__heading { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.setup-color__type {
    background: var(--lotto-black); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 3px;
    letter-spacing: 0.05em; font-weight: 700;
}
.setup-color__base-model { font-family: Eurostile, monospace; color: var(--lotto-black); font-size: 13px; }
.setup-color__preview { text-align: center; min-height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.setup-color__preview-img { max-width: 200px; max-height: 180px; }
.setup-color__name { text-align: center; font-size: 12px; color: var(--lotto-gray-text); margin: 0 0 8px; }
#setup-color-modal .color-chip-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
#setup-color-modal .color-chip__swatch { width: 48px; height: 48px; }
@media (max-width: 768px) {
    .setup-color__side { border-right: 0; border-bottom: 1px solid var(--lotto-gray-border); }
    .setup-color__side:last-child { border-bottom: 0; }
}
.color-chip__name {
    font-size: 11px;
    color: var(--lotto-gray-text);
    line-height: 1.2;
    margin-top: 2px;
    text-align: center;
}
.color-modal__note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--lotto-gray-text);
    text-align: center;
}
.color-modal__footer {
    padding: 14px 20px;
    background-color: var(--lotto-gray-bg);
    border-top: 1px solid var(--lotto-gray-border);
}
.color-modal__confirm {
    background-color: var(--lotto-red);
    border-color: var(--lotto-red);
    color: #ffffff;
    padding: 8px 28px;
    border-radius: 4px;
    font-weight: bold;
}
.color-modal__confirm:hover:not(:disabled) {
    background-color: var(--lotto-red-dark);
    border-color: var(--lotto-red-dark);
    color: #ffffff;
}
.color-modal__confirm:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

/* ■ resume-tabs（品番検索 / ID呼び出し / 前回データからはじめる） PDF Page 1 準拠 */
.resume-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 8px 0 18px;
    flex-wrap: wrap;
}
.resume-tab-form {
    display: inline-block;
    margin: 0;
}
.resume-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: var(--lotto-gray-text);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
.resume-tab:hover:not(:disabled) {
    color: var(--lotto-red);
}
.resume-tab--disabled,
.resume-tab:disabled {
    color: #bfbfbf;
    cursor: not-allowed;
}
.resume-tab__arrow {
    font-size: 10px;
    color: inherit;
    margin-right: 2px;
}

/* ■ 商品カード内文字色調整（既存 .nsd-selectt / .nsd-eufont3 の紫を抑え、PDF トーンに寄せる） */
#item-list .nsd-selectt {
    color: var(--lotto-black);
    font-size: 13px;
    font-weight: normal;
    margin-top: 6px;
}
#item-list .nsd-eufont3 {
    color: var(--lotto-red);
    font-family: Eurostile, 'Oswald', sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-top: 2px;
}
#item-list hr {
    border-top: 1px solid #eeeeee;
    margin: 8px 0;
}
/* ■ #card-display (2026-05-31): カード内リンクテキスト (p.nsd-selectt / p.nsd-eufont3 等) に
   a.direct-select-link / モーダルリンクの underline (text-decoration:underline) が乗って見えるため非表示化 (ユーザ依頼)。
   underline の発生元は anchor のため anchor 側で none 指定 (子 p の text-decoration は既に none で効かない)。 */
#item-list .nsd-selectbox a,
#item-list .nsd-selectbox a:hover,
#item-list .nsd-selectbox a:focus {
    text-decoration: none;
}
/* ■ #card-display (2026-06-01): カード下部 meta 行 = 色数(左) + 価格(右)。 セットは TOTAL 合計価格のみ(右)。
   カード (.nsd-selectbox は position:relative) の最下部に絶対配置で固定し、 文字枠 (.center の height calc:100%-80px) の flow に干渉させない
   (旧: nsd-color-count 単独を bottom-right 絶対配置 → 価格追加に伴い flex 行へ拡張、 left/right で全幅化)。 */
#item-list .nsd-card-meta {
    position: absolute;
    bottom: 6px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: baseline;
    margin: 0;
}
#item-list .nsd-color-count {
    margin: 0;
    font-size: 11px;
    color: #888;
    font-family: Eurostile, 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}
/* 価格: 色数の有無に関わらず margin-left:auto で右寄せ (セットは色数なしでも右端に固定) */
#item-list .nsd-card-price {
    margin-left: auto;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    font-family: Eurostile, 'Oswald', sans-serif;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ■ レスポンシブ（色モーダル・フィルタヘッダ） */
@media (max-width: 768px) {
    .color-chip-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-header__right {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-search-box input {
        width: 100%;
    }
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

/* #D1 (2026-05-31): フィルタ dropdown (bootstrap-multiselect) の選択肢ラベルは、
   bootstrap-material-design2.css L1877 の汎用 `label { color:#BDBDBD }` (Material Design のミュート色) を
   継承し、白背景の dropdown 上でコントラスト不足 (#BDBDBD ≈ 1.9:1、WCAG AA 未満) で不可読だった。
   他所のラベル (意図的ミュート) は変えず、dropdown 内ラベルのみ本文色 #333 に上書き (specificity 0,1,1 で汎用 label に優先、!important 不要)。 */
.multiselect-container label {
    color: #333;
}
