/* バータイムログ — 夜のバー（決め UI3: 暗い地に琥珀色。見本 docs/bar-time-log/mock/A.html） */
:root {
  --bg: #141110; --card: #1f1a17; --ink: #f3e6d0; --sub: #b9a68a; --acc: #d9a441; --line: #3a302a; --ph: linear-gradient(135deg, #4a3420, #2a1d12);
  --danger: #e07a5f;
  --onacc: #1a120a; --hit: rgba(217, 164, 65, .10); --phw: 72px; --phh: 96px; --toast: #2a2219;   /* 差し色の上の字・光らせる色・写真の大きさ（兄弟のごちそうさまログは _gochi/theme.css で替える） */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif; line-height: 1.5; }
main { max-width: 560px; margin: 0 auto; padding: 0 0 96px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

header { padding: 22px 18px 6px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .04em; margin: 0; }
.brand a { text-decoration: none; }
.sub { color: var(--sub); font-size: 12px; margin-top: 4px; }
.top { display: flex; gap: 8px; margin-top: 12px; }
.search { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; }
.search::placeholder { color: var(--sub); }
.pill { flex: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; text-decoration: none; color: var(--sub); }

.night { margin: 14px 12px; background: var(--card); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.nh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.date { color: var(--sub); font-size: 12px; }
.shop { font-size: 17px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.cnt { color: var(--acc); font-size: 12px; flex: none; }
.d { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.d:last-child { border-bottom: 0; }
.ph { flex: none; width: var(--phw); height: var(--phh); border-radius: 9px; background: var(--ph) center / cover no-repeat; }
.tx { min-width: 0; flex: 1; }
.n { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.m { font-size: 12px; color: var(--sub); margin: 3px 0; overflow-wrap: anywhere; }
.k { color: var(--acc); }
.h { font-size: 12.5px; line-height: 1.55; cursor: pointer; overflow-wrap: anywhere; }
.h.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.empty { margin: 40px 18px; color: var(--sub); font-size: 14px; }
.summary { margin: 4px 18px 0; color: var(--sub); font-size: 13px; }
.summary b { color: var(--ink); font-size: 18px; font-weight: 700; margin-right: 2px; }
.fav { margin: 6px 18px 0; font-size: 13px; color: var(--sub); }
.fav span { color: var(--acc); }

.shops { margin: 10px 12px; }
.shoprow { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.shoprow .s2 { color: var(--sub); font-size: 12px; flex: none; }

.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); padding: 14px 20px; border-radius: 999px; border: 0; background: var(--acc); color: var(--onacc); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }

/* 貼る */
.paste { margin: 10px 12px; }
.paste p { color: var(--sub); font-size: 13px; margin: 8px 6px; }
textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13px; }
.btn { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; cursor: pointer; }
.btn.main { background: var(--acc); border-color: var(--acc); color: var(--onacc); font-weight: 700; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.msg { color: var(--acc); font-size: 13px; min-height: 1.5em; margin: 6px; }
.err { color: var(--danger); }
.grp { margin: 12px 0; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.grp label { display: block; color: var(--sub); font-size: 12px; margin: 6px 0 2px; }
.grp input[type=date], .grp input[type=text], .edit input[type=date], .edit input[type=text], .edit textarea { width: 100%; max-width: 100%; min-width: 0; display: block; -webkit-appearance: none; appearance: none; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 15px; }
.cup { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cup:first-of-type { border-top: 0; }
.cup .tx { font-size: 13px; }
.cup.dup .n { color: var(--sub); text-decoration: line-through; }
.tag { display: inline-block; font-size: 11px; color: var(--acc); border: 1px solid var(--acc); border-radius: 6px; padding: 0 6px; margin-left: 4px; }
.x { flex: none; border: 0; background: none; color: var(--sub); font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; }

/* ログイン・設定 */
.hero { margin: 64px 22px; }
.hero h1 { font-size: 30px; letter-spacing: .06em; margin: 0 0 8px; }
.hero p { color: var(--sub); font-size: 14px; }
.settings { margin: 12px 18px; }
.settings input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; width: 12em; }
.foot { margin: 24px 18px; font-size: 12px; color: var(--sub); }
.foot a { margin-right: 14px; }

/* プライバシーポリシー・利用規約 */
.doc { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; font-size: 15px; line-height: 1.9; }
.doc h1 { font-size: 22px; margin: 8px 0 4px; } .doc h2 { font-size: 17px; margin: 32px 0 8px; color: var(--acc); }
.doc .updated { color: var(--sub); font-size: 13px; margin: 0 0 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.7; } .doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }

/* 夜を直す・1 杯を直す */
.fix { flex: none; border: 1px solid var(--line); background: none; color: var(--sub); font-size: 12px; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.edit { margin: 8px 0 4px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.edit label { display: block; color: var(--sub); font-size: 12px; margin: 6px 0 2px; }
.edit input[type=date], .edit input[type=text], .edit textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 15px; }
.edit textarea { min-height: 72px; }
.dbtn { display: flex; gap: 6px; margin-top: 6px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }

/* 写真 */
.pslot { flex: none; width: 60px; height: 78px; border-radius: 8px; border: 2px solid transparent; background: var(--bg); padding: 0; overflow: hidden; cursor: pointer; color: var(--sub); font-size: 11px; }
.pslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot.on { border-color: var(--acc); }
.ph[data-src] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.cup .pslot { width: 52px; height: 68px; }
.pickhint { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--acc); border-radius: 8px; color: var(--acc); font-size: 13px; }
.doc h3 { font-size: 15px; margin: 18px 0 4px; }
.doc pre { white-space: pre-wrap; word-break: break-all; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; line-height: 1.6; }
/* 🔍 だけが次の行に落ちないよう、名前の最後の字とつなぐ（app.js・share.js の &#8288;） */
.ext { display: inline; margin-left: 6px; font-size: 12px; font-weight: 400; text-decoration: none; opacity: .75; vertical-align: 1px; }
.ext.map { font-size: 13px; color: var(--acc); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; letter-spacing: 0; vertical-align: 4px; }
/* カードの下のお知らせの行は、空のときは高さを取らない（カードの下が 30px ほど空いて、次のカードとの間が広く見えた。2026-10-04、minekazz） */
.night .msg:empty { display: none; }
/* ホームの杯のあいだにも、見せるページと同じ細い線（杯ごとの包みに付ける） */
.cupwrap + .cupwrap { border-top: 1px solid var(--line); }
/* タイトルの下のひとこと */
.quote { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; }
.quote .qt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.65; color: var(--ink); opacity: .92; }
.quote .qn { display: block; margin-top: 2px; font-size: 12px; color: var(--acc); }
.quote .qs { color: var(--sub); margin-left: .6em; }   /* ひとことの下の、お店の名前（名前より控えめに） */
.cupwrap.hit, .d.hit { background: var(--hit); border-radius: 8px; transition: background .4s; }
/* 題のマーク */
.mark { width: 28px; height: 28px; border-radius: 7px; vertical-align: -5px; margin-right: 9px; }
.mark.sm { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: 6px; }

a.btn { text-decoration: none; display: inline-block; }
/* 見せるページの題の下: 誰と話した記録か */
.with { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--sub); }

