@charset "utf-8";
/* ==========================================================
   Dark Brown Records — Dark Brown × White Stylesheet
   元のCSSの構造・ID/クラス名は維持しつつ、配色・フォント・
   ディテールを刷新しています。
   ========================================================== */

:root {
  --bg-base:      #ffffff;   /* ページ全体の背景（白） */
  --bg-panel:     #ffffff;   /* ヘッダー・フッター・パネル背景 */
  --bg-panel-alt: #f7f3ef;   /* テーブル行などのわずかな明暗差（生成りに近い薄茶） */
  --border-subtle:#e6ded4;   /* 区切り線 */
  --text-main:    #3c2415;   /* 本文の文字色（ダークブラウン） */
  --text-muted:   #8a7a6c;   /* 補助的なテキスト */
  --accent:       #6b4226;   /* アクセント（ダークブラウン） */
  --accent-hover: #8a5a35;   /* アクセントのホバー時（やや明るいブラウン） */
}

/* レイアウト崩れ対策: border/paddingが要素の幅に加算されないように統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.6;
  vertical-align: baseline;
  background: var(--bg-base);

  margin: 0px;
  padding: 0px;

  display: flex;
  flex-flow: column;
  min-height: 100vh;
}

/* ------------------------------------------------------------
   広告非表示について:
   元のCSSは `p { font-size:0; ... }` という書き方で、
   ページ内の【すべての段落】を強制的に隠していました。
   本文の説明文まで一緒に消えてしまう可能性があるため、
   専用クラスに変更しています。
   広告要素そのものに class="ad-hide" を付けて隠してください。
------------------------------------------------------------ */
.ad-hide {
  text-align: center;
  font-size: 0;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

a, a:visited {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
a:hover, a:focus, a:active {
  text-decoration: underline;
  color: var(--accent-hover);
}
a img {
  border: none;
}

h1 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

#header {
  padding: 8px 10px;
  margin: 0;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
}

#box {
  padding: 5px 10px;
  flex: 1;
}

div#an-search-wrap {
  text-align: center;
}

/* 検索ボックスの枠線 */
div#auction-nudge-items div#an-search-box {
  border-color: var(--border-subtle);
  background-color: #ffffff;
  color: var(--text-main);
  width: 75%;
}

/* 検索ボタン */
div#auction-nudge-items div#an-search-submit {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
div#auction-nudge-items div#an-search-submit:hover {
  background-color: var(--accent-hover);
}

/* 「入札数」「残り時間」列は非表示のまま */
div#auction-nudge-items table th.bids,
div#auction-nudge-items table td.bids,
div#auction-nudge-items table th.ends,
div#auction-nudge-items table td.ends {
  display: none;
}

/* 見出し・セルのテキストカラー */
div#auction-nudge-items table.columns th,
div#auction-nudge-items table.columns td,
div#auction-nudge-items table.columns td a {
  color: var(--text-main);
}

/* 行間の区切り線 */
div#auction-nudge-items table.columns td {
  border-top: 1px solid var(--border-subtle);
}

/* 通常行 / 交互行 */
div#auction-nudge-items table.columns tr {
  background-color: var(--bg-panel);
}
div#auction-nudge-items table.columns tr.alt {
  background-color: var(--bg-panel-alt);
}

div#auction-nudge-items table.columns td.price {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  width: 60px;
}

#auction-nudge-items ul#an-page-top,
#auction-nudge-items ul#an-page-bot {
  font-weight: 700;
  font-size: 22px;
  background: var(--bg-base);
}
#auction-nudge-items ul#an-page-top {
  margin-bottom: 20px;
}
#auction-nudge-items ul#an-page-bot {
  margin-bottom: 40px;
}

#footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  margin: 20px auto 0;
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
#footer a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}
#footer a:hover, #footer a:focus, #footer a:active {
  font-size: 12px;
  text-decoration: underline;
  color: var(--accent);
}

/* 枠線はborderではなくbox-shadowで表現（要素の幅・高さを変えないため） */
#auction-nudge-items div.an-item {
  background-color: var(--bg-panel);
  box-shadow: 0 0 0 1px var(--border-subtle);
  transition: box-shadow 0.15s ease;
}
#auction-nudge-items div.an-item:hover {
  box-shadow: 0 0 0 1px var(--accent);
}

#auction-nudge-items div.an-item div.an-price {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

#auction-nudge-items div.an-item div.an-ends {
  display: none;
}

#auction-nudge-items div.an-title a {
  color: var(--text-main);
  font-size: 16px;
}
#auction-nudge-items div.an-title a:hover,
#auction-nudge-items div.an-title a:focus,
#auction-nudge-items div.an-title a:active {
  color: var(--accent);
}

/* ------------------------------------------------------------
   eBay Partner Network / FTCが義務付けている広告開示文
   （"Ad Clicking an item will take you to eBay..."）
   は完全に非表示にはできません（規約違反リスクがあるため）。
   ここでは目立たなくする（縮小・淡色化）だけに留めています。
   実際のクラス名はブラウザの検証ツールで確認し、
   .an-disclosure の部分を置き換えてください。
------------------------------------------------------------ */
#auction-nudge-items .an-disclosure {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 6px;
}
#auction-nudge-items .an-disclosure a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* 広告開示文を中央寄せに（クラス名に依存せず、
   disclosureページへのリンクを持つdivを直接狙う） */
#auction-nudge-items div:has(> a[href*="/disclosure"]) {
  text-align: center;
}
