/* BARFLY CLUB — bright ivory palette, amber & wine accents.
   Type: gothic for body, mincho for headings/shop names,
   Latin serif for the BARFLY wordmark and rank numerals. */
:root {
  color-scheme: light;
  --bg: #f7f1e5;
  --surface: #fffdf8;
  --surface-2: #efe5d0;
  --text: #2e2113;
  --dim: #77664d;
  --border: #ddcdae;
  --accent: #a56e0e;
  --accent-ink: #fffaf0;
  --wine: #a34a36;
  --radius: 14px;
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", YuGothic, "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
  --font-display: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho",
    YuMincho, "Noto Serif JP", serif;
  --font-rank: Georgia, "Times New Roman", "Hiragino Mincho ProN",
    "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0.015em;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.4; }
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }
.font-rank { font-family: var(--font-rank); font-weight: 700; letter-spacing: 0.01em; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 16px 96px; }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.site-header .inner {
  max-width: 1024px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.wordmark { color: var(--text); line-height: 1.1; }
.wordmark:hover { text-decoration: none; }
.wordmark .en { font-family: var(--font-rank); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.wordmark .jp { font-family: var(--font-display); font-size: 12px; color: var(--dim); letter-spacing: 0.3em; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 14px;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.badge {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--wine); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 0 5px; line-height: 20px; vertical-align: top;
}

/* hero */
.hero {
  margin-top: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: grid; grid-template-columns: 1.2fr 0.8fr;
}
.hero-text { padding: 28px 28px 24px; }
.hero-text .en {
  font-family: var(--font-rank); font-weight: 700;
  font-size: clamp(34px, 6vw, 54px); letter-spacing: 0.06em; line-height: 1.05;
}
.hero-text .jp {
  font-family: var(--font-display); font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.35em; margin-top: 6px;
}
.hero-text p.lead { color: var(--dim); margin: 14px 0 18px; }
.hero-art {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 214, 130, 0.85), rgba(255, 214, 130, 0) 55%),
    radial-gradient(circle at 25% 85%, rgba(163, 74, 54, 0.35), rgba(163, 74, 54, 0) 60%),
    linear-gradient(140deg, #f3dfba 0%, #e8c88f 48%, #d9a75e 100%);
  min-height: 180px; position: relative;
}
.hero-art::after {
  content: "EST. FOR BAR LOVERS";
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--font-rank); font-size: 11px; letter-spacing: 0.28em;
  color: rgba(62, 40, 12, 0.65);
}
.counts { display: flex; gap: 18px; margin: 6px 0 18px; flex-wrap: wrap; }
.counts .c { text-align: left; }
.counts .n { font-family: var(--font-rank); font-size: 26px; font-weight: 700; }
.counts .l { font-size: 12px; color: var(--dim); }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 18px; border-radius: 999px; font-size: 15px; cursor: pointer;
  font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.sub { background: var(--surface); color: var(--accent); }
.btn.wine { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.small { padding: 4px 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--dim); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; color: var(--text);
}
.tile:hover { text-decoration: none; border-color: var(--accent); }
.tile .t { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.tile .d { font-size: 13px; color: var(--dim); line-height: 1.6; }

/* sections & cards */
section.block { margin-top: 34px; }
section.block > h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  margin: 0 0 4px; letter-spacing: 0.03em;
}
section.block > .sub { color: var(--dim); font-size: 14px; margin: 0 0 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.card .meta { font-size: 13px; color: var(--dim); }
.card .barname { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.tag {
  display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent); margin-right: 6px;
}
.tag.wine { border-color: var(--wine); color: var(--wine); }
.photo { border-radius: 10px; margin: 10px 0; max-height: 340px; object-fit: cover; width: 100%; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar.lg { width: 88px; height: 88px; }
.avatar-ph {
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--dim); font-size: 20px;
}
.avatar-ph.lg { width: 88px; height: 88px; font-size: 32px; }
.flex { display: flex; gap: 14px; align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--dim); font-size: 14px;
  background: var(--surface);
}

/* forms */
form .row { margin-bottom: 14px; }
label.lab { display: block; font-size: 13px; color: var(--dim); margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"],
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; font-size: 15px; font-family: var(--font-sans);
  color: var(--text);
}
textarea { min-height: 96px; }
.flash {
  background: #fdf3d8; border: 1px solid var(--accent); color: var(--text);
  border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: 14px;
}
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checkline input { margin-top: 6px; }

/* ranking */
.rank-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-family: var(--font-rank); font-weight: 700; font-size: 30px; color: var(--accent); min-width: 44px; }
.rank-item .shop { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.rank-item .catch { font-weight: 600; letter-spacing: 0.02em; }
.rank-item .desc { color: var(--text); font-size: 14px; }
.rank-item .mood { font-size: 12px; color: var(--wine); }
details.more summary { cursor: pointer; color: var(--accent); padding: 10px 0; }

/* calendar */
table.cal { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); }
table.cal th, table.cal td { border: 1px solid var(--border); padding: 6px; vertical-align: top; font-size: 12px; width: 14.28%; }
table.cal td { height: 84px; }
table.cal td.out { background: var(--surface-2); opacity: 0.55; }
table.cal td.today { outline: 2px solid var(--accent); outline-offset: -2px; }
table.cal .dnum { font-family: var(--font-rank); font-weight: 700; font-size: 13px; }
table.cal .plan { display: block; background: #fdf3d8; border-radius: 6px; padding: 1px 5px; margin-top: 3px; line-height: 1.45; }
table.cal .plan.mine { background: var(--wine); color: #fff; }

/* bottom nav (mobile) */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a { flex: 1; text-align: center; color: var(--text); font-size: 11px; line-height: 1.3; padding: 4px 0; position: relative; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav .badge { position: absolute; top: 0; right: calc(50% - 20px); }
footer.site {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 16px 90px;
  text-align: center; color: var(--dim); font-size: 12px; background: var(--surface);
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 110px; order: -1; }
  .main-nav { display: none; }
  .bottom-nav { display: flex; }
  .wrap { padding-bottom: 110px; }
}
