/* item-detail.css — 商品詳細ページ固有のスタイル */

.item-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 商品ヘッダー枠の値（No.値・属名・種名品種名・説明）。
   価格情報枠の値(¥1,000・0件・19:45:03 等)と同じ 18px に統一して
   商品詳細ページ全体で「値」サイズを揃える。 */
.item-detail__number,
.item-detail__genus,
.item-detail__title,
.item-detail__description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #0a0a0a;
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* 説明だけ改行を反映（出品時の改行をそのまま見せる） */
.item-detail__description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─────────────────────────────────────────────
   画像ビューア（モーダル）
   商品画像クリックで開く全画面表示
───────────────────────────────────────────── */

/* 商品画像にクリック可能であることを示すカーソルを表示 */
.item-gallery__main-image,
.item-swiper__image {
  cursor: zoom-in;
}

/* ビューア本体: 画面全体を覆う白背景。閉じてる時は非表示 */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: #ffffff;
  /* スマホでアドレスバーがある状態でも全画面で見せたいので可変高さに対応 */
  height: 100vh;
  height: 100dvh;
}

/* 開いた状態: フェードインしながら表示 */
.image-viewer.is-open {
  display: block;
  animation: imageViewerFadeIn 0.2s ease;
}

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

/* 背景のクリック領域（画像以外の場所をタップで閉じる） */
.image-viewer__backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

/* 画像をセンタリングする内側コンテナ */
/* ── Swiperで管理する画像エリア ──
   ビューアいっぱいに広げて、スワイプ・ピンチはすべてSwiperに任せる。
   各スライドの画像は swiper-zoom-container で囲ってあるのでピンチ拡大が効く。 */
.image-viewer__swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  /* スワイプ中の指追従でブラウザのデフォルト挙動（横スクロール等）を抑制 */
  touch-action: pan-y;
}

/* 各スライド: 画像を中央寄せ（Swiperのデフォルトに沿う） */
.image-viewer__swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* swiper-zoom-container はSwiper Zoomモジュールのピンチ拡大対象。中央寄せ */
.image-viewer__swiper .swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 表示画像: 画面の横幅いっぱいに広げる。縦が画面を超える時は縮小して全体が見えるようにする。
   元画像が小さくても画面いっぱいに引き伸ばす（ヤフオク・メルカリと同じ挙動）。
   object-fit: contain でアスペクト比は保持。 */
.image-viewer__swiper .swiper-zoom-container > img {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  /* ハードウェアアクセラレーションでスワイプ・ピンチを滑らかに */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 閉じるボタン（×）右上に固定（白背景に映える濃いグレー） */
.image-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  z-index: 30;
  transition: background-color 0.2s;
  /* ノッチ・ステータスバー回避（iOS） */
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

.image-viewer__close:hover,
.image-viewer__close:focus-visible {
  background: rgba(0, 0, 0, 0.85);
  outline: none;
}

/* スマホでは少し小さめに */
@media (max-width: 768px) {
  .image-viewer__close {
    width: 44px;
    height: 44px;
  }
}

/* ── ナビ・カウンター用の内側コンテナ（インナー幅） ──
   画面いっぱいに広がらず、最大1200pxの中にボタンを配置するためのwrapper。
   背景の閉じる領域(backdrop)と画像本体はwrapしない（画像はフルスクリーンに広げたいので）。
   z-indexはSwiperより上のレイヤーに置いてボタンが画像の裏に隠れないようにする。 */
.image-viewer__viewport {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 20;
  pointer-events: none; /* 背景は閉じる領域として通したい */
}
/* ナビ・カウンター本体はクリックを受け取りたいので戻す */
.image-viewer__viewport > * {
  pointer-events: auto;
}

/* 前後ナビボタン（PCギャラリーの prev/next と同じトーンに統一）
   半透明の白背景、矢印は濃いグレー、円形、影付き */
.image-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}
.image-viewer__nav:hover,
.image-viewer__nav:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}
.image-viewer__nav--prev { left: 16px; }
.image-viewer__nav--next { right: 16px; }

/* 画像が1枚しかない時はナビボタンを隠す（JSで .is-single クラスを付ける） */
.image-viewer.is-single .image-viewer__nav,
.image-viewer.is-single .image-viewer__counter {
  display: none;
}

/* 画像カウンター（"3 / 8" のような表示） */
.image-viewer__counter {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 16px;
  z-index: 10;
}

.item-detail__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* PC: 左に画像(縦に伸びる)、右上に商品ヘッダー、右下に入札情報枠 */
  grid-template-areas:
    "gallery header"
    "gallery side";
  /* 右カラム(header → side)が画像の高さに沿って伸びるよう、行高は内容に任せる */
  grid-template-rows: auto 1fr;
  gap: 32px;
  align-items: start;
}

/* iOS Safari は form/input や Swiper の中身が min-width:auto のままだと、
   親幅より大きい「内容幅」でページ全体を押し広げることがある。
   商品詳細ページではログイン時の入札フォームがその影響を受けやすいので、
   主要コンテナを viewport 内で必ず縮められるようにしておく。 */
/* .item-detail はページ全体の器で、冒頭で max-width:1280px を指定している。
   ここで max-width:100% を当てると 1280px の制限が消えて PC で画面幅いっぱいに
   広がってしまうため、はみ出し対策の min-width:0 だけを適用する（2026-07-26） */
.item-detail {
  min-width: 0;
}

.item-detail__body,
.item-gallery,
.item-gallery--sp,
.item-swiper,
.item-detail__header,
.item-side,
.item-info,
.item-bid,
.item-bid__form,
.item-bid__field,
.item-bid__input-wrap,
.item-section,
.item-share,
.item-qa-link {
  max-width: 100%;
  min-width: 0;
}

/* グリッド配置: 画像(PC/SP両方共用エリア) → header → side */
.item-gallery--pc { grid-area: gallery; }
.item-gallery--sp { grid-area: gallery; } /* SP用は通常PCで非表示。同じエリア指定でOK */
.item-detail__header { grid-area: header; }
.item-side { grid-area: side; }

/* 商品ヘッダー枠（外枠）。価格枠 .item-info と同じ 2px ボーダーで統一感を持たせる。
   内部は「ラベル(左) 値(右)」の1行リストをシンプルに縦並び */
.item-detail__header {
  border: 2px solid var(--sand-line, #b9ab8c);
  background: #fff; /* ページの砂色が透けないよう白地に（ボス指示 2026-08-21） */
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 1行(項目)あたり: ラベル幅固定 + 値が残りを使う、全体は左寄せ */
.item-detail__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

/* ラベル(左) - 幅固定でグレー。値と同じ16pxで揃え、色だけで主従を区別する。
   「種名・品種名」が1行で収まるよう PC は 100px 確保（2文字＋中黒＋3文字 ≈ 96px）。 */
.item-detail__label {
  flex: 0 0 100px;
  font-size: 16px;
  color: #6a7282;
  line-height: 1.6;
}

/* ラベル分割パーツ（種名・品種名 専用）
   PC では中黒つなぎの1行、スマホでは改行して2行に切り替える */
.item-detail__label-part,
.item-detail__label-sep {
  display: inline;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__link {
  font-size: 16px;
  color: #4a5565;
  line-height: 24px;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: #008236;
}

.breadcrumb__item--current {
  font-size: 16px;
  color: #0a0a0a;
  line-height: 24px;
}

.breadcrumb__arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.item-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-gallery__main {
  border: 2px solid var(--sand-line, #b9ab8c);
  background-color: #f3f4f6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.item-gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-gallery__counter {
  text-align: center;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #364153;
  background: #f3f4f6;
  margin-bottom: 8px;
}

.item-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.item-gallery__thumb {
  border: 2px solid var(--sand-line, #b9ab8c);
  padding: 2px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: none;
  transition: border-color 0.2s;
}

.item-gallery__thumb:hover {
  border-color: #00a63e;
}

.item-gallery__thumb--active {
  border-color: #00a63e;
}

.item-gallery__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PC用ギャラリーナビボタン ── */
.item-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
  transition: background 0.2s;
}

.item-gallery__nav:hover {
  background: rgba(255,255,255,0.9);
}

.item-gallery__nav--prev {
  left: 10px;
}

.item-gallery__nav--next {
  right: 10px;
}

/* ── PC/SP ギャラリー切替 ── */
.item-gallery--sp {
  display: none;
  background: #f3f4f6;
  overflow: hidden;
}
.item-gallery--pc {
  display: block;
}

/* ── Swiperカスタムスタイル ── */
.item-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.item-swiper .swiper-wrapper {
  display: flex;
}

.item-swiper .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.item-swiper__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.item-swiper .swiper-button-prev,
.item-swiper .swiper-button-next {
  color: #333;
  background: rgba(255,255,255,0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.item-swiper .swiper-button-prev::after,
.item-swiper .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.item-swiper__pagination {
  text-align: center;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #364153;
  background: #f3f4f6;
}

/* ── 右列：入札情報 ── */
.item-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item-info {
  border: 2px solid var(--sand-line, #b9ab8c);
  background: #fff; /* 同上 */
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.item-info__price-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--sand-line-soft, #cfc3a6);
  padding-bottom: 4px;
}
.item-info__price-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  padding: 2px 0;
}
.item-info__price-bids {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  padding: 2px 0;
  border-left: 1px solid var(--sand-line-soft, #cfc3a6);
}

.item-info__price-label {
  /* ラベルは全種類(stat-label/price-label)で 18px 統一（読みやすさ重視で底上げ） */
  font-size: 18px;
  color: #4a5565;
  line-height: 1.4;
}

.item-info__price {
  /* 価格(¥1,000円)はオークションの主役なので他の値より2px大きくして強調。
     他の値（入札数・タイマー・最高入札者）は 22px、ここだけ 24px。 */
  font-size: 24px;
  font-weight: 700;
  color: #008236;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
}

.item-info__stats {
  display: flex;
  gap: 24px;
  padding-bottom: 24px;
}

.item-info__meta-grid {
  display: grid;
  /* 残り時間と最高入札者の2項目を等幅で並べる（上の「開始価格・入札数」と同じ
     2分割レイアウトに揃える）。出品者表示削除に伴い 3列 → 2列に変更。
     さらに3行目に終了日時+注意書きの全幅セルが入る。 */
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding-top: 4px;
}

.item-info__meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
  padding: 2px 0;
}

.item-info__meta-item + .item-info__meta-item {
  border-left: 1px solid var(--sand-line-soft, #cfc3a6);
}

.item-info__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-info__stat-label {
  font-size: 18px; /* ラベルは全種類で18px統一（読みやすさ重視で底上げ） */
  color: #4a5565;
  line-height: 1.4;
}

.item-info__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px; /* 価格(24)より控えめ、ラベル(18)より大きい中間サイズ */
  font-weight: 700;
  color: #e7000b;
  line-height: 1.3;
}
.item-info__timer--ended {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: #666;
  line-height: 1.4;
}

.item-detail--ended .item-info__timer--ended {
  font-size: 20px;
}

/* meta-grid 内の3行目（全幅セル）として「終了日時 + 延長注意書き」を表示。
   PC/スマホ共通で中央寄せ、上に細い区切り線を入れて時計/最高入札者セルとの境界を明確化。 */
.item-info__end-info {
  grid-column: 1 / -1;        /* 2列にまたがって全幅 */
  text-align: center;
  border-top: 1px solid var(--sand-line-soft, #cfc3a6);
  margin-top: 4px;
  padding-top: 6px;
}

/* タイマー直下の終了日時補足（「2026年4月18日 11:26 終了」）。
   主役の値より1段控えめだが読みやすさ重視で 16px に。色は引き続き控えめグレー。 */
.item-info__end-datetime {
  margin-top: 4px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.4;
  white-space: nowrap;
}

/* 終了日時のさらに下に出す注意書き（「※終了10分以内の入札で延長」）。
   サイズ・色は直上の終了日時(.item-info__end-datetime)と揃えて読みやすく。 */
.item-info__extend-note {
  margin-top: 2px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.4;
}

.item-info__bids {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px; /* 価格(24)より控えめ、ラベル(18)より大きい中間サイズ */
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
}

.item-info__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.item-info__seller {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-info__seller-name {
  font-size: 20px; /* 価格(24)より控えめ、ラベル(18)より大きい中間サイズ */
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
  /* 管理画面から作った長いIDでも枠を壊さないよう「…」で省略（スマホ側と同じ保険） */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 入札フォーム ── */
/* 旧仕様の「通常入札 / 自動入札」タブを廃止し、自動入札のみに統一したため、
   .bid-tabs / .bid-panel 系のCSSは削除済み。入札フォームは .item-bid 単独で表示する。 */
.item-bid {
  border: 2px solid #00a63e;
  background-color: #f0fdf4;
  padding: 20px 24px 24px;
  margin-top: 0;
}

/* ── 入札上限到達時の表示 ──
   次の最低入札額が ¥1,000,000 以上になり、これ以上の入札を受け付けられない状態。
   入力欄・ボタンを出す代わりに、グレーの案内パネルを表示する。 */
.item-bid--maxed {
  border-color: var(--sand-line, #b9ab8c);
  background-color: #f3f4f6;
  text-align: center;
  padding: 24px 20px;
}

.item-bid__maxed-title {
  font-size: 16px;
  font-weight: 700;
  color: #4a5565;
  margin: 0 0 8px;
}

.item-bid__maxed-text {
  font-size: 16px;
  color: #4a5565;
  line-height: 20px;
  margin: 0;
}

/* ─────────────────────────────────────────────
   SNSシェアボタン（商品詳細ページ）
   入札フォームの下に置く控えめな枠。
   端末標準の共有シートを呼び出す「共有」ボタンだけを表示する。
───────────────────────────────────────────── */
.item-share[hidden] {
  display: none;
}

.item-share {
  margin-top: 16px;
  padding: 16px 20px 18px;
  border: 1px solid var(--sand-line-soft, #cfc3a6);
  /* 他の枠と同じく角は丸くしない（ボス指示 2026-07-26） */
  border-radius: 0;
  background: #ffffff;
}

.item-share__title {
  margin: 0 0 12px;
  font-size: 16px;
  color: #6b7280;
  font-weight: 500;
}

/* ネイティブ共有ボタン。フル幅で押しやすくする */
.item-share__btn--native {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  /* 共有ボタンの枠は黒1px（ボス指示 2026-07-26。入札金額の枠と同じ） */
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .item-share__btn--native:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }
}

/* スマホ表示で文字が窮屈にならないよう、ボタンの最低高さを確保 */
@media (max-width: 768px) {
  .item-share {
    padding: 14px 16px 16px;
  }
  .item-share__btn--native {
    padding: 11px 12px;
    font-size: 16px;
  }
}

.item-bid__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-bid__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-bid__label {
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 20px;
}

.item-bid__input-wrap {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.item-bid__currency {
  font-size: 18px;
  color: #0a0a0a;
  line-height: 28px;
  flex-shrink: 0;
}

.item-bid__input {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 56px;
  padding: 12px 16px;
  /* 入札金額の枠は黒1px（ボス指示 2026-07-26） */
  border: 1px solid #000000;
  font-size: 18px;
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  color: #0a0a0a;
  background-color: #ffffff;
}

.item-bid__input::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.item-bid__input:focus {
  outline: 2px solid #00a63e;
  outline-offset: -2px;
}

.item-bid__input::-webkit-outer-spin-button,
.item-bid__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.item-bid__input[type=number] {
  -moz-appearance: textfield;
}

.item-bid__note {
  font-size: 14px;
  color: #4a5565;
  line-height: 18px;
  margin: 0;
  /* ── 「最低入札金額 ¥xxxx以上」と「自動入札のしくみ」を横並び ──
     画面が狭くて1行に収まらない時だけ折り返す。 */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  max-width: 100%;
  min-width: 0;
}

/* 「最低入札金額 ¥30,000以上」全体は一塊として扱う(途中で改行させない) */
.item-bid__note-min {
  white-space: nowrap;
  max-width: 100%;
}

/* 価格部分は太字＋濃い色で目立たせる */
.item-bid__note-price {
  font-weight: 600;
  color: #0a0a0a;
}

.item-bid__submit {
  width: 100%;
  height: 60px;
  background-color: #00a63e;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  font-family: "Shippori Mincho", "Noto Sans JP", serif;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.item-bid__submit:hover {
  background-color: #008236;
}

.item-bid__submit--link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── 例を見るボタン ── */
.autobid-example-btn {
  background: none;
  border: none;
  color: #008236;
  font-size: 14px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0;
  white-space: nowrap; /* 「自動入札のしくみ」自体も改行しないように */
}

.autobid-example-btn:hover {
  color: #006a2e;
}

/* ── 自動入札モーダル ── */
.autobid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.autobid-modal.is-open {
  display: flex;
}

.autobid-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.autobid-modal__content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 440px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
}

.autobid-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #6a7282;
  cursor: pointer;
  padding: 4px;
}

.autobid-modal__close:hover {
  color: #0a0a0a;
}

.autobid-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.autobid-modal__desc {
  font-size: 16px;
  color: #4a5565;
  line-height: 1.6;
  margin-bottom: 20px;
}

.autobid-modal__example {
  background: #f8fafc;
  border: 1px solid var(--sand-line-soft, #cfc3a6);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.autobid-modal__example-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0a0a0a;
}

.autobid-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.autobid-modal__step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.autobid-modal__step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #008236;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.autobid-modal__step--over .autobid-modal__step-num {
  background: #dc2626;
}

.autobid-modal__step-body {
  flex: 1;
}

.autobid-modal__step-text {
  font-size: 16px;
  color: #0a0a0a;
  line-height: 1.4;
}

.autobid-modal__step-result {
  font-size: 14px;
  color: #008236;
  font-weight: 600;
  margin-top: 2px;
}

.autobid-modal__step--over .autobid-modal__step-result {
  color: #dc2626;
}

.autobid-modal__increment {
  background: #f8fafc;
  border: 1px solid var(--sand-line-soft, #cfc3a6);
  border-radius: 6px;
  padding: 16px;
}

.autobid-modal__increment-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.autobid-modal__increment-note,
.autobid-modal__limit-note {
  font-size: 14px;
  color: #4a5565;
  line-height: 1.5;
}

.autobid-modal__increment-note {
  margin-bottom: 10px;
}

.autobid-modal__limit-note {
  margin-top: 8px;
}

.autobid-modal__table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
}

.autobid-modal__table th,
.autobid-modal__table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--sand-line-soft, #cfc3a6);
}

.autobid-modal__table th {
  color: #364153;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.autobid-modal__table th:first-child,
.autobid-modal__table td:first-child {
  color: #4a5565;
}

.autobid-modal__table th:last-child,
.autobid-modal__table td:last-child {
  font-weight: 600;
  text-align: right;
}

/* ── 商品説明・入札履歴 ── */
.item-section {
  border: 2px solid var(--sand-line, #b9ab8c);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-section__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #0a0a0a;
}

.item-section__text {
  font-size: 16px;
  color: #364153;
  line-height: 1.75;
}

.item-history {
  border: 1px solid var(--sand-line, #b9ab8c);
  overflow: hidden;
}

.item-history__table {
  width: 100%;
  border-collapse: collapse;
}

.item-history__th {
  background-color: #f3f4f6;
  font-size: 16px;
  font-weight: 500;
  color: #364153;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--sand-line, #b9ab8c);
  line-height: 20px;
}

.item-history__td {
  font-size: 16px;
  color: #0a0a0a;
  padding: 12px 16px;
  border: 1px solid var(--sand-line, #b9ab8c);
  line-height: 20px;
  background-color: #ffffff; /* ページの生成り色を透過させず、見出し行と揃った白系で統一 */
}

.item-history__td--price {
  font-weight: 700;
  color: #008236;
}

.item-history__bidder-name--short {
  display: none;
}

.item-history__date--short {
  display: none;
}

.item-history__td--date {
  color: #4a5565;
}

.item-history__td--empty {
  text-align: center;
  color: #6a7282;
}

/* 入札履歴はクリックできない一覧なので、ホバーで色を変えない（ボス指摘 2026-07-12） */

@media (max-width: 768px) {
  /* 商品詳細ページのスマホ表示でも、バナー・ヘッダーメニュー・モバイルストリップは
     他ページと同じように表示する（2026-05-09 全ページ共通化）。
     以前は画像エリアを大きく見せるためヘッダーを display:none にしていたが、
     全ページ統一のため復活させた。 */
  .item-detail {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 12px 12px 32px;
    gap: 16px; /* 12 → 16px：各大セクション(画像/価格情報枠/サイド/入札履歴)の間を+4px */
  }
  /* スマホ：商品ヘッダー枠の余白控えめ。値とラベルは PC と同じ 16px。 */
  .item-detail__header {
    padding: 12px 14px;
    gap: 6px;
  }
  .item-detail__label {
    flex: 0 0 64px;
    font-size: 16px;
  }
  /* 「種名・品種名」行はスマホ時、ラベルを「種名」改行「品種名」の2行に。
     ・中黒(.item-detail__label-sep)を非表示
     ・各パーツ(.item-detail__label-part)を block 表示で改行
     ・行全体は align-items: center にして、値(タイトル)が2行ラベルの上下中央に来るようにする */
  .item-detail__row--multi-label {
    align-items: center;
  }
  .item-detail__row--multi-label .item-detail__label-part {
    display: block;
    line-height: 1.4;
  }
  .item-detail__row--multi-label .item-detail__label-sep {
    display: none;
  }
  .item-detail__number,
  .item-detail__genus,
  .item-detail__title,
  .item-detail__description {
    font-size: 18px; /* 値の統一サイズ（PCと同じ） */
  }
  /* スマホは1列レイアウト。商品ヘッダー → 画像(SP) → 入札情報 の順に並べる。
     画像エリアは grid-area: gallery のままで、PCの隣接配置からスマホの単独行に変わる */
  .item-detail__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "gallery"
      "side";
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .item-gallery--pc {
    display: none;
  }
  .item-gallery--sp {
    display: block;
  }
  .breadcrumb {
    font-size: 14px;
    margin-bottom: -4px;
  }
  .breadcrumb__item--top {
    display: none;
  }
  .breadcrumb__arrow--top {
    display: none;
  }
  .item-info {
    padding: 8px;
    gap: 6px;
  }
  .item-info__price-block {
    gap: 2px;
  }
  /* スマホは PC より各サイズを2px小さく:
     ・価格(¥1,000円)        24 → 22px
     ・入札数/残り時間/最高入札者 20 → 18px
     ・ラベル                 18 → 16px
     ・終了日時 / ※注意書き    16 → 14px */
  .item-info__price {
    font-size: 22px;
  }
  .item-info__bids,
  .item-info__timer,
  .item-info__seller-name {
    font-size: 18px;
  }
  .item-info__price-label,
  .item-info__stat-label {
    font-size: 16px;
  }
  .item-info__end-datetime {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* ※注意書きはスマホでさらに2px小さく(14 → 12px)。
     終了日時(14px)とは別行で、より控えめな注釈の位置づけ。 */
  .item-info__extend-note {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  /* スマホでも PC と同じ 2 等分レイアウトを維持。
     ・残り時間 + 終了日時 + ※注意書き が左セル（縦に積む）
     ・最高入札者 が右セル
     終了日時と注意書きは時計の下に残す。タイマー本体の位置はPCと一致させたいので
     並び順は変更せず、上下中央寄せもしない（左セルの中身が下に伸びる）。 */
  .item-info__meta-grid {
    padding-top: 4px;
    gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  /* 終了済みの商品詳細だけ、終了時刻のセルを少し広く取る。
     右側の落札者欄は幅と文字を控えめにして、年月日と時刻が窮屈に見えないようにする。 */
  .item-detail--ended .item-info__meta-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(76px, 0.65fr);
  }
  /* 終了時刻は改行禁止だと「2026年7月12日 15:10」がセル幅を超えて右へはみ出すため、
     スマホでは日付と時刻で2行に折り返せるようにする */
  .item-detail--ended .item-info__timer--ended {
    white-space: normal;
    font-size: 18px;
    line-height: 1.35;
  }
  .item-info__meta-item {
    gap: 1px;
    /* 中身が縦に伸びる左セルとの高さ差を吸収するため、各セルは上揃えに */
    align-self: start;
    min-width: 0;
  }
  .item-info__seller-name {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .item-info__meta-item:nth-child(2) {
    padding-left: 8px;
    padding-right: 8px;
  }
  .item-detail--ended .item-info__meta-item:nth-child(2) .item-info__stat-label {
    font-size: 15px;
  }
  .item-detail--ended .item-info__meta-item:nth-child(2) .item-info__seller-name {
    font-size: 16px;
    line-height: 1.35;
  }
  /* 旧サイズの個別上書き（stat-label 12px / seller-name 13px）は
     上の統一指定（label 14px / 値 18px）に置き換えたので削除済み。 */
  /* スマホ時のセクション間隔を全体的に+4px広げる。
     .item-side は flex column なので gap が各子(価格情報・入札フォーム・
     Q&Aリンク・シェアセクション 等)の間に追加される。
     既存の margin-top/bottom と合算されて、すべての境目が 4px 広くなる。 */
  .item-side {
    gap: 4px;
  }
  .item-bid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
  }
  .item-bid__input-wrap {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .item-bid__submit {
    height: 48px;
    font-size: 18px; /* 主要ボタンは値と同じ 18px に統一 */
  }
  .item-bid__input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 16px;
  }
  .item-bid__note-min {
    white-space: normal;
  }
  .item-section {
    padding: 16px;
    gap: 12px;
  }
  .item-section__title {
    font-size: 16px;
  }
  .item-history__th,
  .item-history__td {
    font-size: 14px;
    padding: 10px 6px;
  }
  .item-history {
    border: 1px solid var(--sand-line, #b9ab8c);
    overflow: hidden;
  }
  .item-history__table {
    display: table;
    width: 100%;
    table-layout: fixed;
  }
  .item-history__thead {
    display: table-header-group;
  }
  .item-history__table tbody {
    display: table-row-group;
  }
  .item-history__row {
    display: table-row;
  }
  .item-history__td {
    display: table-cell;
    border: 1px solid var(--sand-line, #b9ab8c);
    min-width: 0;
    vertical-align: middle;
  }
  .item-history__th:nth-child(1),
  .item-history__td--bidder {
    width: 26%;
  }
  .item-history__th:nth-child(2),
  .item-history__th:nth-child(1),
  .item-history__td--bidder {
    width: 42%; /* 年の省略で空いたぶんを入札者IDへ（見出し行にも指定しないと効かない） */
  }
  .item-history__th:nth-child(2),
  .item-history__td--price {
    width: 28%; /* ¥113,000 のような6桁でも日時列に食い込まない幅 */
  }
  .item-history__th:nth-child(3),
  .item-history__td--date {
    width: 30%; /* 年を省略した「8/30 06:39」形式にしたぶん狭めた */
  }
  /* 入札者名タップで全表示（is-name-open）: 折り返して全文を見せる */
  .item-history__row.is-name-open .item-history__bidder-name--short {
    display: none !important;
  }
  .item-history__row.is-name-open .item-history__bidder-name--full {
    display: block !important;
    white-space: normal;
    word-break: break-all;
    line-height: 1.4;
  }
  .item-history__td--bidder {
    overflow: hidden;
  }
  .item-history__bidder-name--full {
    display: none !important;
  }
  .item-history__bidder-name--short {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .item-history__td--price {
    white-space: nowrap;
    text-align: left;
  }
  .item-history__td--date {
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-align: left;
  }
  .item-history__date--full {
    display: none;
  }
  .item-history__date--short {
    display: block;
  }
  .item-history__td--empty {
    text-align: center;
  }
}

/* ─────────────────────────────────────────────
   入札ステータスバッジ（あなたが最高入札者です／上限を超えられました）
   ログイン中で自分が入札している商品にだけ表示される。
   緑=最高入札者中、赤=他人に上回られた状態
───────────────────────────────────────────── */
.bid-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid;
}

.bid-status--leading {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.bid-status--outbid {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.bid-status__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
}

.bid-status--leading .bid-status__icon {
  color: #16a34a;
}

.bid-status--outbid .bid-status__icon {
  color: #dc2626;
}

.bid-status__body {
  flex: 1;
  min-width: 0;
}

.bid-status__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.bid-status__detail {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.bid-status__detail strong {
  font-size: 16px;
  font-weight: 700;
}

.bid-status__action {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

/* ─────────────────────────────────────────────
   入札確認モーダル
   入札ボタンを押すとフォーム送信前にこれが開く。
   利用者が中の「入札する」を押した時に実際にPOSTされる。
───────────────────────────────────────────── */
.bid-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.bid-confirm-modal.is-open {
  display: flex;
  animation: bidConfirmFadeIn 0.2s ease;
}

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

.bid-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.bid-confirm-modal.is-submitting .bid-confirm-modal__overlay {
  cursor: wait;
}

.bid-confirm-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 440px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.bid-confirm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  border-radius: 50%;
  transition: background 0.2s;
}

.bid-confirm-modal__close:hover {
  background: #f1f5f9;
}

.bid-confirm-modal__close:disabled {
  cursor: wait;
  opacity: 0.45;
}

.bid-confirm-modal__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

.bid-confirm-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sand-line-soft, #cfc3a6);
}

.bid-confirm-modal__label {
  color: #6b7280;
  font-size: 16px;
  flex-shrink: 0;
}

.bid-confirm-modal__value {
  color: #1f2937;
  font-size: 16px;
  text-align: right;
  font-weight: 500;
  word-break: break-word;
}

/* 金額行は強調表示 */
.bid-confirm-modal__row--price .bid-confirm-modal__value--price {
  font-size: 24px;
  font-weight: 700;
  color: #16a34a;
}

/* 自動入札の説明（注意書き） */
.bid-confirm-modal__notice {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.bid-confirm-modal__notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #6b7280;
}

.bid-confirm-modal__notice strong {
  color: #1f2937;
}

.bid-confirm-modal__actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-top: 20px;
}

.bid-confirm-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.bid-confirm-modal__btn:hover {
  background: #f9fafb;
}

.bid-confirm-modal__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bid-confirm-modal__btn--primary {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.bid-confirm-modal__btn--primary:hover:not(:disabled) {
  background: #15803d;
  border-color: #15803d;
}

.bid-confirm-modal__btn--primary:disabled {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  opacity: 1;
  cursor: wait;
}

.bid-confirm-modal__btn--loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: bidConfirmSpin 0.8s linear infinite;
}

@keyframes bidConfirmSpin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
   前の苗 / 次の苗 ナビ（PC: ギャラリー直下に配置）
   ・サムネイル(5枚並びのグリッド)の下に等幅2ボタンで並ぶ
   ・hover で枠と文字をテーマ色(緑)に切替
   ・前後の商品が無い時は --disabled 状態にして押せないようにする
   ・SP では .item-gallery--pc 自体が display:none なので、この PC 版は自動で出なくなる
───────────────────────────────────────────── */
.item-nav {
  display: flex;
  gap: 8px;
}

.item-nav--pc {
  margin-top: 16px;
}

.item-nav__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--sand-line, #b9ab8c);
  background: #ffffff;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.item-nav__link:hover {
  background: #f3f4f6;
  border-color: #00a63e;
  color: #00a63e;
}

.item-nav__link--disabled {
  color: #9ca3af;
  background: #f9fafb;
  border-color: var(--sand-line-soft, #cfc3a6);
  cursor: not-allowed;
  pointer-events: none;
}

.item-nav__icon {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   前の苗 / 次の苗 ナビ（SP: 画面下部に常時固定）
   ・PC では非表示、SP(<=768px) で固定バーとして出す
   ・固定バーが本文を隠さないよう、.item-detail に対して padding-bottom を追加する
───────────────────────────────────────────── */
.item-nav-mobile {
  display: none; /* PC では出さない（PC は item-nav--pc を使う） */
}

@media (max-width: 768px) {
  .item-nav-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50; /* ヘッダーストリップ・ドロワーよりは下、通常コンテンツよりは上 */
    gap: 8px;
    padding: 8px 32px;
    /* iPhone のホームインジケーターに被らないようセーフエリア分の下余白を足す */
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid var(--sand-line, #b9ab8c);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  }

  .item-nav-mobile__link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border: 2px solid var(--sand-line, #b9ab8c);
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
  }

  .item-nav-mobile__link--disabled {
    color: #9ca3af;
    background: #f9fafb;
    border-color: var(--sand-line-soft, #cfc3a6);
    pointer-events: none;
  }

  .item-nav-mobile__icon {
    flex-shrink: 0;
  }

  /* 固定バー(item-nav-mobile)が viewport 下部に張り付くため、
     ページを最下部までスクロールしてもフッターのコピーライトが見えるよう、
     body 全体に下余白を確保する（バーの高さ + 視覚的な余白20px）。
     ・body.single-auction は WordPress の body_class が CPT 'auction' の単一表示で自動付与
     ・バー実高 ≒ 60px (8 + 44 + 8) + safe-area
     → 80px + safe-area で「バー上にフッター末尾が visible」「コンテンツとの間に20px breathing room」を両立 */
  body.single-auction {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* 画像なし商品のプレースホルダー（PCメイン画像・SPスワイパー共通。Codexデプロイ前点検 2026-07-12） */
.item-gallery__main-image--placeholder,
.item-swiper__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0ec;
  color: #8a8a83;
  font-size: 15px;
  letter-spacing: 0.1em;
  border-radius: 8px;
}


/* ─────────────────────────────────────────────
   入札金額の「その金額では入札できません」表示（2026-08-30）
   最低入札額未満・100円単位でない値のとき、ブラウザ標準の見た目は
   バラバラ（Firefox系は欄をピンクに塗る等）なので、赤い枠線に統一する。
   :user-invalid は「ユーザーが触った後」にだけ効くので、開いた直後には出ない
───────────────────────────────────────────── */
.item-bid__input:user-invalid {
  border-color: #c62828;
  background-color: #ffffff;
  box-shadow: none;
}
/* Firefoxの旧来の赤い光彩も同じ見た目に揃える（このセレクタはFirefox専用のため単独ルールにする） */
.item-bid__input:-moz-ui-invalid {
  border-color: #c62828;
  background-color: #ffffff;
  box-shadow: none;
}
