/* Minerva不動産 オークション — 深紅ベース＋ゴールドの高級オークション路線 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Shippori+Mincho:wght@500;600;700;800&family=Josefin+Sans:wght@300;400;600&display=swap');

:root {
  --ink: #282828;
  --ink-soft: #5a6470;
  /* minerva-re.com のブランドカラー（深紅）。変数名は互換のため据え置き */
  --teal: #c30d23;        /* 鮮やかな深紅：ボタン・リンク・強調 */
  --teal-bright: #e03a4d; /* 明るい赤：グラデ・ホバー */
  --teal-dark: #9b111e;   /* 濃い深紅：見出し・ダーク文字 */
  --teal-pale: #fbeaec;   /* 極淡い赤：背景・アイコン地 */
  --cloud: #bdc8d5;
  --bg: #f7f9fa;
  --white: #ffffff;
  --line: #e3e9ee;
  --danger: #d9534f;
  --gold: #c9a227;
  --gold-bright: #e6c65a; /* 明るい金 */
  --gold-dark: #9a7b12;   /* 濃い金 */
  --ink-luxe: #1a1424;    /* 高級感のある濃紺黒（ダーク面用） */
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(40, 40, 40, 0.07);
  --gold-grad: linear-gradient(100deg, #b8901f 0%, #e6c65a 40%, #f3e3a2 55%, #c9a227 100%);
}

/* ゴールドのグラデ文字（見出し用） */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* 上品な金の区切り線 */
.gold-rule { height: 2px; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 10px 0; }

/* ===== フクロウの薄い透かし（1匹だけ・そっと） ===== */
.owl-one {
  position: fixed; right: -18px; bottom: -12px; width: 210px; height: auto;
  z-index: 0; pointer-events: none; opacity: 0.12; user-select: none;
}
@media (max-width: 640px) { .owl-one { width: 150px; opacity: 0.1; } }
.container, .site-header .header-inner { position: relative; z-index: 1; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--teal-dark); text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}
.brand .en {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.brand .ja { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-nav a { color: var(--ink-soft); font-size: 14px; }
.header-nav a.active, .header-nav a:hover { color: var(--teal-dark); }
.user-chip { font-size: 13px; color: var(--ink-soft); }
.badge-dot {
  display: inline-block; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; line-height: 18px;
  text-align: center; padding: 0 5px; vertical-align: 2px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.page-title { font-family: var(--mincho); font-size: 25px; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.02em; }
.page-title::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--gold-grad); vertical-align: 6px; margin-right: 10px; }
.page-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 24px; }

/* ---------- カード ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.property-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
  color: var(--ink);
}
.property-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(40,40,40,0.12); }
.property-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--teal-pale), #f7dde0);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--cloud); font-size: 40px;
}
.property-card .body { padding: 16px 18px 18px; }
.property-card h3 { font-size: 16px; margin-bottom: 4px; }
.property-card .addr { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; }
.price-label { font-size: 11px; color: var(--ink-soft); }
.price-value { font-size: 20px; font-weight: 700; color: var(--teal-dark); }
.price-value .yen { font-size: 12px; font-weight: 400; margin-left: 2px; }

/* ---------- お気に入り ---------- */
.property-card { position: relative; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.94); font-size: 20px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); color: #b9c3cd;
  transition: transform 0.12s;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.on { color: #f5a623; }
.list-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.list-tabs button {
  border: 1px solid var(--cloud); background: var(--white); border-radius: 20px;
  padding: 6px 18px; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--ink-soft);
}
.list-tabs button.act { background: var(--teal); border-color: var(--teal); color: #fff; }
.fav-toggle { width: 100%; margin-bottom: 14px; }
.fav-toggle.on { background: #fdf3d7 !important; border-color: #f5a623 !important; color: #9a7b12 !important; }

/* ---------- ステータス ---------- */
.status {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 2px 10px; border-radius: 20px; vertical-align: 3px;
}
.status.active { background: var(--teal-pale); color: var(--teal-dark); }
.status.ended { background: #eef1f4; color: var(--ink-soft); }
.status.draft { background: #fdf3d7; color: #9a7b12; }
.status.won { background: #fdf3d7; color: var(--gold); }

/* ---------- フォーム ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--ink); }
label.field small { color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cloud);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--teal-bright); border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--teal-dark); }
.btn.secondary { background: var(--white); color: var(--teal-dark); border: 1px solid var(--teal); }
.btn.secondary:hover { background: var(--teal-pale); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b94441; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn:disabled { background: var(--cloud); cursor: not-allowed; }

.msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; display: none; }
.msg.error { background: #fdeaea; color: var(--danger); display: block; }
.msg.ok { background: var(--teal-pale); color: var(--teal-dark); display: block; }

/* ---------- テーブル ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; color: var(--ink-soft); font-weight: 500; background: var(--bg); white-space: nowrap; }
tr.mine td { background: var(--teal-pale); }

/* ---------- ログイン ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffffff 0%, var(--teal-pale) 60%, #f6d9dd 100%);
  padding: 20px;
}
.login-box {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(155, 17, 30, 0.15);
  padding: 40px 40px 34px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative; overflow: hidden;
  border-top: 3px solid transparent;
  border-image: var(--gold-grad) 1;
}
.login-box h1 { font-size: 26px; margin: 4px 0 2px; }
.login-box .subtitle { font-family: var(--mincho); font-size: 13.5px; color: var(--gold-dark); letter-spacing: 0.14em; margin-bottom: 26px; }
.login-box .subtitle::before, .login-box .subtitle::after { content: '◆'; font-size: 8px; color: var(--gold); vertical-align: 2px; margin: 0 8px; }
.login-box form { text-align: left; }
.login-box .btn { width: 100%; margin-top: 8px; }
.login-note { margin-top: 20px; font-size: 12px; color: var(--ink-soft); }

/* ---------- 物件詳細 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.gallery-main {
  width: 100%; height: 380px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-pale), #f7dde0);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--cloud); font-size: 60px;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 76px; height: 56px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
}
.gallery-thumbs img.sel { border-color: var(--teal); }

.bid-panel { position: sticky; top: 80px; }
.current-price-box {
  background: linear-gradient(145deg, #7a0d17 0%, #9b111e 45%, #c30d23 100%);
  color: #fff; border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px; position: relative; overflow: hidden;
  border: 1px solid rgba(230, 198, 90, 0.5);
  box-shadow: 0 10px 30px rgba(123, 13, 23, 0.35);
}
.current-price-box .lbl { font-size: 11px; letter-spacing: 0.28em; color: var(--gold-bright); font-weight: 600; margin-bottom: 2px; }
.current-price-box .val { font-family: var(--mincho); font-size: 34px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.current-price-box .val .yen { font-size: 15px; font-weight: 500; margin-left: 3px; color: var(--gold-bright); }
.current-price-box .sub { font-size: 12px; opacity: 0.9; }

.spec-table td:first-child { color: var(--ink-soft); font-size: 13px; width: 110px; white-space: nowrap; }

.highest-flag {
  background: var(--teal-pale); color: var(--teal-dark);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500;
  margin-bottom: 12px; text-align: center;
}
.won-flag { background: #fdf3d7; color: var(--gold); }

/* ---------- 通知 ---------- */
.notif-item { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.notif-item .time { font-size: 11px; color: var(--ink-soft); }
.notif-item.unread { background: var(--teal-pale); border-radius: 8px; padding: 14px 12px; }

/* ---------- 管理画面 ---------- */
.admin-tag {
  font-size: 11px; background: var(--ink); color: #fff;
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.05em;
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow);
}
.stat .num { font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.stat .lbl { font-size: 12px; color: var(--ink-soft); }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 140px; }

.cred-box {
  background: var(--bg); border: 1px dashed var(--cloud); border-radius: 8px;
  padding: 14px 18px; font-size: 15px; margin-top: 12px;
}
.cred-box code { font-size: 17px; font-weight: 700; color: var(--teal-dark); }

.img-manage { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.img-manage .item { position: relative; }
.img-manage img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.img-manage button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: var(--danger); color: #fff;
  cursor: pointer; font-size: 12px; line-height: 1;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .bid-panel { position: static; }
  .gallery-main { height: 240px; }
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .header-nav { margin-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .card { padding: 18px; }
}

/* ブランドロゴ */
.brand-logo { height: 30px; vertical-align: -6px; margin-right: 8px; }

/* 終了カウントダウン */
.countdown {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fbeaec; color: #9b111e;
  font-weight: 700; font-size: 12.5px; line-height: 1;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.countdown.soon { background: #fff3e0; color: #c25e00; }
.countdown.urgent { background: #fdecea; color: #d32f2f; animation: cdPulse 1.1s ease-in-out infinite; }
.countdown.big { font-size: 15px; padding: 9px 18px; }
@keyframes cdPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
