/* 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 40px; }

/* header */
.site-header {
  background: #fdf0e2; /* ロゴ画像（logo-gold.webp）の地色に合わせて馴染ませる */
  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: 0; display: block; flex: none; }
.wordmark:hover { text-decoration: none; }
.logo-img { height: 46px; width: auto; display: block; }
.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;
}

/* auth state box (always visible, incl. mobile) */
.auth-box { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.auth-name {
  color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap;
  max-width: 38vw; overflow: hidden; text-overflow: ellipsis;
}
.auth-name:hover { text-decoration: none; color: var(--accent); }
.main-nav { margin-left: 4px; }

/* back-to-previous-page button */
.back-nav { margin: 14px 0 4px; }
.btn-back {
  display: inline-block; background: var(--surface); color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px;
  font-size: 14px; font-weight: 700; box-shadow: 0 1px 3px rgba(62, 40, 12, 0.08);
}
.btn-back:hover { text-decoration: none; border-color: var(--accent); }

/* cute pill badge for tappable cards / rows */
.go-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: #fdf3d8; border: 1px solid var(--accent); color: var(--accent);
  font-size: 11px; font-weight: 700; line-height: 1.6; padding: 1px 10px;
  border-radius: 999px; white-space: nowrap;
}
a.go-pill:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); }

/* notification kind label + plan date */
.kind-badge {
  display: inline-block; background: #fdf3d8; border: 1px solid var(--accent);
  color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.6;
  padding: 0 9px; border-radius: 999px; white-space: nowrap; margin-right: 8px;
}
.plan-date { margin-left: 10px; color: var(--accent); font-weight: 700; }
.go-pill.wine { background: #f9e9e2; border-color: var(--wine); color: var(--wine); }
a.go-pill.wine:hover { background: var(--wine); color: #fff; }
.tile .go-pill { margin-top: 10px; }
.rank-item .go-pill { align-self: center; }

/* "who is here now" chips on bar pages */
.here-chip {
  display: inline-block; background: #fdf3d8; border: 1px solid var(--accent);
  color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.6;
  padding: 2px 12px; border-radius: 999px; margin: 0 4px 6px 0;
}
a.here-chip:hover { text-decoration: none; background: var(--accent); color: var(--accent-ink); }

/* anniversary badge on bar pages */
.anniv-badge {
  display: inline-block; background: var(--wine); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.6; padding: 2px 12px;
  border-radius: 999px; margin-left: 10px; vertical-align: middle; white-space: nowrap;
}

/* 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);
}
.hero-photo { position: relative; min-height: 180px; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-photo::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: #fffaf0; text-shadow: 0 1px 6px rgba(46, 33, 19, 0.8);
}

/* photo slideshow under the hero */
.slideshow {
  position: relative; margin-top: 16px; aspect-ratio: 21 / 8;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.slideshow .slide {
  margin: 0; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease; pointer-events: none;
}
.slideshow .slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow figcaption {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 130px);
  background: rgba(255, 253, 248, 0.92); color: var(--text);
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255, 253, 248, 0.9); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.slide-btn:hover { background: #fffdf8; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-dots {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 7px;
}
.slide-dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 253, 248, 0.9); background: rgba(46, 33, 19, 0.35);
}
.slide-dot.is-active { background: var(--accent); border-color: #fffdf8; }

.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); }
.btn.block { display: block; width: 100%; box-sizing: border-box; text-align: center; }
.btn.big {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 16px 20px; font-size: 17px; font-weight: 700; margin-top: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.btn-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.hero-text .btn-stack .btn { text-align: center; }

/* 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); }
.owner-badge {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.6;
  padding: 1px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
  background: var(--wine); color: #fff; white-space: nowrap;
}
a.owner-badge { color: #fff; }
a.owner-badge:hover { background: var(--accent); }
.photo { border-radius: 10px; margin: 10px 0; max-height: 340px; object-fit: cover; width: 100%; }
.photo-card { display: block; text-decoration: none; color: var(--text); margin-bottom: 0; }
.photo-card:hover { border-color: var(--accent); }
.photo-card .photo { margin: 0 0 10px; max-height: 240px; }
.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; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.shelf-card { margin-bottom: 0; padding: 12px; }
.shelf-card .photo { margin: 0 0 8px; height: 150px; max-height: none; }
.shelf-card .drink-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 6px; }
.shelf-card .blurb { font-size: 13px; color: var(--dim); margin: 4px 0 0; line-height: 1.6; }
.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; }

/* bar search */
.bar-search {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin: 14px 0 18px;
}
.bar-search .row { margin-bottom: 10px; }
.bar-search .row:last-of-type { margin-bottom: 12px; }

/* 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; }

footer.site {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 16px;
  text-align: center; color: var(--dim); font-size: 12px; background: var(--surface);
}
@media (max-width: 720px) {
  .logo-img { height: 36px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 110px; order: -1; }
  .hero-photo { min-height: 170px; order: -1; }
  .slideshow { aspect-ratio: 3 / 2; }
  .slide-btn { width: 34px; height: 34px; font-size: 20px; }
  .slideshow figcaption { max-width: calc(100% - 120px); }
  .main-nav { display: flex; flex-basis: 100%; margin-left: 0; gap: 2px; }
  .main-nav a { font-size: 13px; padding: 5px 8px; }
  .wrap { padding-bottom: 40px; }
}
