@charset "UTF-8";

/* 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.5;
}

/* 共通コンテナ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* ヘッダー帯 */
.top-header {
    background-color: #1a2530;
    color: #fff;
    text-align: center;
    padding: 8px 10px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* メインビジュアル */
.hero-section {
    background: linear-gradient(rgba(10, 30, 60, 0.6), rgba(10, 30, 60, 0.6)), url('images/factory-bg.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.main-title .en-sub {
    font-size: 2.8rem;
    letter-spacing: 2px;
}

.sub-badge {
    display: inline-block;
    background-color: #111;
    border: 2px solid #fff;
    border-radius: 30px;
    padding: 8px 25px;
    margin-top: 15px;
    font-size: 1.4rem;
    font-weight: bold;
}

.accent-red {
    color: #ff3333;
}

/* リード文 */
.venue-lead {
    text-align: center;
    background-color: #fff;
    padding: 12px 10px;
    font-size: 1.1rem;
    border-bottom: 2px solid #ddd;
}

.badge-red {
    background-color: #c00;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* 上部アクションエリア（4並列・形状統一レイアウト） */
.top-action-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px;
    padding: 0 10px;
    flex-wrap: wrap; /* 画面幅に合わせて折り返し */
}

/* 形状を完全に統一した共通ボタン基本スタイル */
.btn-action {
    flex: 1;                     /* PCでは全てのボタンを同じ幅に均等割り */
    min-width: 200px;            /* 崩れない最小幅 */
    max-width: 230px;            /* 大きくなりすぎない最大幅 */
    height: 50px;                /* 高さを統一 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;          /* 角丸の形を統一 */
    color: #fff;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* 1. リスト一覧（メイン：紺色） */
.btn-catalog {
    background-color: #002b49;
    box-shadow: 0 4px 10px rgba(0, 43, 73, 0.3);
}

/* 2. 番外編リスト一覧（番外編カラー：マスタード/ブラウン） */
.btn-sub-catalog {
    background: linear-gradient(135deg, #b37700, #996600);
    box-shadow: 0 4px 10px rgba(153, 102, 0, 0.3);
}

/* 3. 入札要項（PDF）（オレンジ） */
.btn-terms {
    background: linear-gradient(135deg, #ff9900, #ff6600);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}


.btn-terms:hover {
    background-color: #001f35;
}

/* 4. リスト印刷（PDF）（緑色） */
.btn-print {
    background-color: #28a745;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-print:hover {
    background-color: #218838;
}

/* スマホ表示（2行2列のきれいなグリッド状に自動調整） */
@media (max-width: 768px) {
    .btn-action {
        min-width: calc(50% - 10px); /* スマホでは2列でピシッと揃う */
        max-width: 100%;
        font-size: 0.9rem;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .btn-action {
        min-width: 100%;              /* 極小画面では1本ずつ全幅表示 */
    }
}

/* FAXバンナー（シンプル化） */
.fax-banner {
    background-color: #002b49;
    color: #fff;
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.fax-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.fax-sub {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* フッター（主催センター寄せ） */
.footer-section {
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.organizer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.organizer-tag {
    display: inline-block;
    background-color: #002b49;
    color: #fff;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 8px;
}

.organizer-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #111;
}

.organizer-tel a {
    color: #002b49;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.organizer-fax {
    color: #555;
    font-size: 1rem;
}
/* 3会場カード */
.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.venue-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #002b49;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.venue-card.sub-venue {
    border-color: #996600;
}

.venue-header {
    background-color: #002b49;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

.venue-card.sub-venue .venue-header {
    background-color: #996600;
}

.venue-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.venue-body {
    padding: 15px;
}

.venue-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #111;
}

.venue-body .address {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

.venue-body .tel a {
    color: #002b49;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.map-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    background-color: #eee;
    color: #333;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}

/* スケジュール */
.schedule-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.schedule-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid #002b49;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.schedule-box.auction {
    border-left-color: #c00;
}

.schedule-icon {
    font-size: 2.5rem;
}

.schedule-detail h2 {
    font-size: 1.1rem;
    color: #666;
}

.schedule-detail .date {
    font-size: 1.3rem;
    font-weight: bold;
    color: #111;
}

.schedule-detail .date span {
    font-size: 1.8rem;
}

.schedule-detail .date.highlight {
    color: #c00;
}


/* カタログ用スタイル */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-back, .btn-print {
    background-color: #002b49;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-print {
    background-color: #28a745;
}

/* ページネーションボタン */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 18px;
    background-color: #fff;
    border: 2px solid #002b49;
    color: #002b49;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn.active, .page-btn:hover {
    background-color: #002b49;
    color: #fff;
}

/* 商品カード */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.item-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-no {
    background-color: #c00;
    color: #fff;
    font-weight: bold;
    padding: 4px 8px;
    font-size: 0.9rem;
    text-align: center;
}

.item-img img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.item-details {
    padding: 12px;
}

.venue-badge, .cat-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 5px;
}

.venue-badge { background: #e0f0ff; color: #002b49; font-weight: bold; }
.cat-badge { background: #eee; color: #555; }

.item-name {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.item-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.item-table th {
    text-align: left;
    color: #666;
    width: 40%;
}

.item-table td {
    font-weight: bold;
}

/* 印刷時の設定 */
@media print {
    .btn-back, .btn-print, .pagination, .top-header {
        display: none !important;
    }
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* スマホ対応調整 */
@media (max-width: 600px) {
    .main-title {
        font-size: 2.5rem;
    }
    .main-title .en-sub {
        font-size: 2rem;
    }
    .sub-badge {
        font-size: 1rem;
    }
    .fax-title {
        font-size: 1.5rem;
    }
    .btn-catalog {
        font-size: 1.1rem;
        width: 90%;
    }
}

/* ==========================================
   リスト表形式（右端画像）用スタイル
   ========================================== */

/* カード用グリッド表示を解除して表表示に対応 */
#catalog-grid {
    display: block;
}

/* テーブル全体の枠組み */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.item-list-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.item-list-table th {
    background-color: #002b49;
    color: #fff;
    padding: 12px 10px;
    font-weight: bold;
    white-space: nowrap;
}

.item-list-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.item-list-table tbody tr:hover {
    background-color: #f9fbfd;
}

/* 各列の個別デザイン */
.col-no { text-align: center; width: 60px; }
.no-badge {
    background-color: #cc0000;
    color: #fff;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.col-venue { width: 90px; text-align: center; }
.venue-pill {
    background-color: #e0f0ff;
    color: #002b49;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.col-name { min-width: 180px; }
.item-cat { font-size: 0.75rem; color: #666; }
.item-title { font-weight: bold; font-size: 1rem; color: #111; }

.col-spec { min-width: 180px; font-size: 0.88rem; color: #444; }
.spec-row strong { color: #666; font-weight: normal; }

/* 最低価格のスタイル */
.col-price {
    width: 120px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: bold;
    color: #d9534f;
    white-space: nowrap;
}

/* 一番右端の画像スタイル */
.col-img {
    width: 110px;
    text-align: center;
}

.col-img img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .item-list-table th, .item-list-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    .col-img img {
        width: 70px;
        height: 52px;
    }
    .col-price {
        font-size: 0.95rem;
    }
}

/* 印刷時の設定 */
@media print {
    .table-wrapper {
        box-shadow: none;
        border: none;
    }
    .item-list-table th {
        background-color: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
    }
}

/* ==========================================
   指定項目一覧表（No / 物品名 / メーカー / 型式 / 年式 / 仕様 / 最低価格 / 写真）
   ========================================== */
#catalog-grid {
    display: block;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.item-list-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.item-list-table th {
    background-color: #002b49;
    color: #fff;
    padding: 12px 10px;
    font-weight: bold;
    white-space: nowrap;
}

.item-list-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.item-list-table tbody tr:hover {
    background-color: #f8fbff;
}

/* 各列の幅とスタイル */
.col-no { text-align: center; width: 50px; }
.no-badge {
    background-color: #cc0000;
    color: #fff;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.col-name { min-width: 140px; }
.col-maker { min-width: 100px; }
.col-model { min-width: 110px; }
.col-year { width: 70px; text-align: center; }
.col-spec { min-width: 150px; font-size: 0.85rem; color: #555; }

.col-price {
    width: 110px;
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    color: #d9534f;
    white-space: nowrap;
}

.col-img {
    width: 90px;
    text-align: center;
}

.col-img img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    margin: 0 auto;
    background-color: #eee;
}

/* 印刷時の設定 */
@media print {
    .table-wrapper {
        box-shadow: none;
        border: none;
    }
    .item-list-table th {
        background-color: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
    }
}

/* ==========================================
   写真拡大モーダル（ポップアップギャラリー）
   ========================================== */
.col-img img {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.col-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.img-container {
    position: relative;
    display: inline-block;
}

.img-count-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 3px;
    pointer-events: none;
}

/* モーダル背景（縦スクロールを有効化） */
.img-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 10px;
    box-sizing: border-box;
    overflow-y: auto; /* 縦長になっても背景ごと画面スクロール可能 */
}

/* モーダル本体 */
.img-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 950px; /* 横幅を大きく拡大 */
    width: 100%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
    box-sizing: border-box;
    margin: 20px auto;
}

.img-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    z-index: 10;
}
.img-modal-close:hover { color: #000; }

.img-modal-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #002b49;
    padding-right: 30px;
    text-align: left;
}

/* メイン拡大画像（高さをしっかり確保して大きく表示） */
.img-modal-main-view {
    width: 100%;
    max-height: 65vh; /* メイン画像の迫力をしっかりキープ */
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* サムネイル一覧（横スクロール仕様 ＆ はみ出し・切れる問題を解決） */
.img-modal-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;       /* 横スクロール */
    overflow-y: hidden;
    padding: 5px 0 10px 0;
    border-top: 1px solid #eee;
    justify-content: flex-start; /* 左詰め配置で1枚目からのスクロール切れを解消 */
    white-space: nowrap;
}

/* サムネイル画像の大きさ */
.img-modal-thumb {
    width: 75px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}

.img-modal-thumb.active, .img-modal-thumb:hover {
    opacity: 1;
    border-color: #002b49;
}

/* 一覧表の画像サイズ設定 */
.item-list-table .col-img img,
.img-container img {
    width: 120px;  /* 例: 80px から 120px に拡大 */
    height: 90px;  /* 例: 60px から 90px に拡大 */
    object-fit: cover; /* 画像が歪まないように調整 */
}

/* ==========================================
   検索ボックスのデザイン
   ========================================== */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

#search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    border: 2px solid #002b49;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
}

#search-input:focus {
    box-shadow: 0 0 8px rgba(0, 43, 73, 0.3);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    display: none; /* 入力時のみ表示 */
    padding: 0 5px;
    line-height: 1;
}

.search-clear-btn:hover {
    color: #333;
}
