/* 画面の作り直しの見本（依頼者 2026-10-21。PLAN.md「三歩目」）。
   黒地のまま・線を使わない（区切りは余白と少し明るい面）・ピンクは「押すもの」と「自分」だけ。スマホの幅で組み、広い画面は中央に */

:root {
  --bg: #000;
  --surface: #262626;          /* 2026-10-21「暗すぎて見づらい」で面・文字とも明るく（2回目でもう一段） */
  --surface-2: #363636;
  --text: #ffffff;
  --sub: #e2e2e2;
  --muted: #b0b0b0;
  --pink: #f0047f;
  --pink-soft: rgba(240, 4, 127, 0.18);
  --gold: #c9bf86;
  --gray: #9a9a9a;
  --radius: 18px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ─── 土台 ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* 画面のスクロールバーは見せない（2026-10-26 依頼者。出たり消えたりすると幅が変わり、タブや検索ボックスがカクッと横にずれる）。スクロールはできる */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body.v2 { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1.6; }
/* 文字は 500 を基本に（細いと黒地で沈む。antialiased も細く見えるので使わない） */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }
.fine a { text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 16px; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 28px 0; }
.list-lead { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.75; margin: 10px 0 22px; }   /* おすすめの上の説明（飲んだが 0 本の人だけ・2026-10-26） */
.err { color: #fff; background: var(--pink); border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }

/* ─── 上の帯 ─── */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 600px; margin: 0 auto; min-height: 60px; padding: 12px 16px; background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo img { width: min(362px, 54vw); height: auto; }   /* 今の画面と同じくらい（依頼者 2026-10-21） */
.back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; }
.back svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.me { color: var(--muted); font-size: 13px; }
.page { max-width: 600px; margin: 0 auto; padding: 8px 16px 120px; }

/* ─── 2択・3択の切り替え ─── */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.seg > * { padding: 7px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.seg > .on { background: var(--text); color: #000; font-weight: 500; }
.seg small { margin-left: 6px; font-size: 12px; opacity: 0.7; }
.seg-wide { display: flex; margin: 8px 0 18px; }
.seg-wide > * { flex: 1; text-align: center; }
.seg-small > * { padding: 5px 12px; font-size: 13px; }
/* 記録の画面のガイド: 香りのカードの上にまん中で。スクロールすると上の帯のまん中に収まる（2026-10-24 依頼者） */
/* 記録の画面の飲んだ日: 日付を押すと下にカレンダー（2026-10-24 依頼者） */
.day-pick { position: relative; display: inline-block; }
.day-pick svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-pick-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }   /* 見た目はもとの日付の文字のまま */
.day-pick-btn small { padding: 1px 8px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; }
.day-cal-back { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.4); }
.day-cal { position: absolute; z-index: 31; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(300px, calc(100vw - 32px));
  padding: 12px; border-radius: 16px; background: var(--surface-2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); text-align: center; }
.day-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.day-cal-head button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.day-cal-head button:disabled { opacity: 0.25; }
.day-cal-week, .day-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.day-cal-week span { padding: 4px 0; color: var(--muted); font-size: 11px; }
.day-cal-grid button { aspect-ratio: 1; border-radius: 50%; color: var(--text); font-size: 14px; }
.day-cal-grid button:disabled { opacity: 0.25; }
.day-cal-grid button.today { box-shadow: inset 0 0 0 1px var(--muted); }
.day-cal-grid button.on { background: var(--pink); color: #fff; font-weight: 700; box-shadow: none; }
.guide-home { display: flex; justify-content: center; margin: 20px 0 12px; }
.seg.seg-docked { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); animation: guide-dock 0.18s ease-out; }
@keyframes guide-dock { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translateX(-50%); } }
.top-right { transition: opacity 0.15s; }
body.guide-crowded .top-right { opacity: 0; pointer-events: none; }   /* 帯が狭くて重なるときだけ右の名前を隠す */
/* 白い丸は1つだけ置いて、押した方へすべらせる（v2.js）。少し行き過ぎて戻る動き */
.seg { position: relative; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; padding: 0; border-radius: 999px; background: var(--text); pointer-events: none; }
.seg.ready .seg-pill { transition: transform 0.38s cubic-bezier(0.3, 1.35, 0.5, 1), width 0.38s cubic-bezier(0.3, 1.35, 0.5, 1), opacity 0.2s; }
.seg > :not(.seg-pill) { position: relative; z-index: 1; transition: color 0.25s; }
.seg.has-pill > .on { background: none; }

/* 一覧の入れ替え: 出ていくときは薄く、入るときは1行ずつ下から */
.list { transition: opacity 0.18s, transform 0.18s; }
.list.leaving { opacity: 0; transform: translateY(6px); }
.list.enter .drink, .list.enter .empty { animation: rise 0.36s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .seg.ready .seg-pill, .list { transition: none; }
  .list.enter .drink, .list.enter .empty { animation: none; }
}

/* ─── 面（カード） ─── */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; margin-top: 14px; }
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.card h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 22px 0 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { margin: 0; }

/* ─── ボタン（下に浮く） ─── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 10px; justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #000 40%); }
.btn { flex: 1; max-width: 420px; display: block; padding: 15px 20px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 16px; font-weight: 700; text-align: center; letter-spacing: 0.04em; }
.btn:disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn-quiet { background: var(--surface-2); color: var(--text); max-width: 200px; }
.chip { align-self: flex-start; display: inline-block; margin-top: 6px; padding: 1px 10px; border-radius: 999px; background: var(--pink-soft);
  color: var(--pink); font-size: 12px; font-weight: 500; }
.badge { position: absolute; right: 4px; top: 4px; padding: 0 7px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700; line-height: 18px; }

/* ─── 一覧 ─── */
.drinks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }   /* 長い醸造所名でも画面の幅を超えない（2026-10-25） */
.drink { position: relative; background: var(--surface); border-radius: var(--radius); }
.drink-link { display: flex; gap: 14px; align-items: center; height: 96px; padding: 0 56px 0 0; }
.drink-bottle { flex: none; width: 54px; height: 108px; display: grid; place-items: center; }
.drink-bottle .bottle, .drink-bottle img { width: 100%; height: 100%; object-fit: contain; }
.drink-text { display: flex; flex-direction: column; min-width: 0; }
.drink-maker, .drink-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drink-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.drink-maker { color: var(--muted); font-size: 12px; }
.drink-name { font-size: 17px; font-weight: 500; line-height: 1.45; margin-top: 2px; }
.drink-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.heart { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.heart.on svg { fill: var(--pink); stroke: var(--pink); }
.heart:disabled { opacity: 0.4; cursor: default; }

/* ─── ワインの顔 ─── */
.hero { text-align: center; padding: 12px 0 8px; }
.hero-bottle { width: 92px; height: 184px; margin: 0 auto 18px; }
.hero-bottle .bottle, .hero-bottle img { width: 100%; height: 100%; object-fit: contain; }
.hero-maker { color: var(--pink); font-size: 14px; font-weight: 500; }
.hero-maker-plain { color: var(--muted); font-size: 14px; margin-top: 2px; }
.hero-name { font-size: 24px; font-weight: 700; line-height: 1.4; margin-top: 4px; }
.hero-facts { color: var(--muted); font-size: 13px; margin-top: 8px; }
.hero-small { padding-top: 4px; }
.hero-small .hero-name { font-size: 22px; }
.prose { color: var(--sub); font-size: 15px; line-height: 1.95; margin: 18px 2px 4px; white-space: pre-wrap; }
.prose-in { margin: 0; }

/* ─── レーダー（v2.js が SVG を描く。外枠1本だけ） ─── */
.radar { max-width: 340px; margin: 0 auto; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; justify-content: center; gap: 18px; margin-bottom: 4px; font-size: 13px; color: var(--sub); }
.legend li::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.key-mine::before { background: var(--pink); }
.key-all::before { background: var(--gray); }
.key-maker::before { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 7px); }

/* ─── 香り ─── */
.aromas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }   /* 系統ごとに4つ＝1行 */
.aroma { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.aroma-pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--surface-2); overflow: hidden;
  display: grid; place-items: center; }
.aroma-pic img { width: 82%; height: 82%; object-fit: contain; }
.aroma-name { font-size: 12px; color: var(--sub); text-align: center; line-height: 1.35; }
.aroma-name i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.aroma-name small { margin-left: 4px; color: var(--muted); }
.cat { display: flex; align-items: center; gap: 8px; }
.cat i { width: 8px; height: 8px; border-radius: 50%; }
.card h3.cat { margin: 20px 0 10px; color: var(--sub); }
/* 選ぶとき: 選んでいないものは少し沈め、選んだらピンクの輪 */
.aromas-pick .aroma .aroma-pic { opacity: 0.72; transition: opacity 0.15s, box-shadow 0.15s; }
.aromas-pick .aroma[aria-pressed="true"] .aroma-pic { opacity: 1; box-shadow: inset 0 0 0 3px var(--pink); }
.aromas-pick .aroma[aria-pressed="true"] .aroma-name { color: var(--pink); font-weight: 700; }
.guide-dot { display: none; position: absolute; right: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.aroma.guide .guide-dot { display: block; }

/* ─── 香りの割合（1本の帯） ─── */
.share { margin-top: 22px; }
.share-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.share-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--sub); }
.share-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.share-legend small { margin-left: 4px; color: var(--muted); }

/* ─── 点数を付ける・並べる ─── */
.score { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.score-label { font-size: 15px; }
.score-dots { display: flex; gap: 8px; }
.score-dots button { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--sub); font-size: 15px; }
.score-dots button[aria-pressed="true"] { background: var(--pink); color: #fff; font-weight: 700; }
.score-dots button.guide::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); }
.scores { margin-top: 18px; }
.scores > div { display: flex; align-items: baseline; gap: 4px; padding: 7px 2px; }
.scores dt { flex: 1; font-size: 14px; color: var(--sub); }
.scores dd { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.v-mine { color: var(--pink); font-weight: 700; }
.v-all { color: var(--gray); }
.v-maker { color: var(--gold); }
textarea { width: 100%; padding: 14px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px; resize: vertical; }        /* 16px 未満だと iOS Safari が触れたときに画面を拡大する（2026-10-28） */
textarea::placeholder { color: var(--muted); }
textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ─── レビュー ─── */
.review + .review { margin-top: 18px; }
.review-head { display: flex; justify-content: space-between; gap: 10px; }
.stars { color: var(--pink); letter-spacing: 1px; white-space: nowrap; }
.stars i { color: #4a4a4a; font-style: normal; }
.review-body { color: var(--sub); font-size: 14px; margin: 4px 0; white-space: pre-wrap; }

/* ─── 入力（2026-10-21 残りの画面） ─── */
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password] { width: 100%; padding: 13px 14px; border: 0; border-radius: 12px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
input:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--pink); flex: none; }
.btn-inline { flex: none; width: 100%; max-width: none; }
/* カードの中の送るボタンは白枠。ピンクの塗りは下に浮くボタンと、ログインのように画面の主な動作（.btn-main）だけ（依頼者 2026-10-21） */
.card .btn-inline:not(.btn-main) { background: none; box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); padding: 13px 20px; font-size: 15px; }
.card .btn-inline:not(.btn-main):disabled { box-shadow: inset 0 0 0 1.5px var(--muted); color: var(--muted); }
.card .btn-inline.btn-quiet { box-shadow: none; background: var(--surface-2); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hint-after { margin: 14px 0 0; text-align: center; }
.done { color: var(--sub); text-align: center; padding: 8px 0; }
.rate { display: flex; gap: 6px; }
.rate button { font-size: 30px; line-height: 1; color: #4a4a4a; }
.rate button.on { color: var(--pink); }
.pick { position: relative; display: grid; place-items: center; width: 120px; height: 160px; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; }
.pick input[type=file], .avatar input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick img, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.busy { opacity: 0.5; }
.my-photos { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.my-photos li { display: grid; gap: 6px; justify-items: center; }
.my-photos img { width: 64px; height: 86px; object-fit: cover; border-radius: 10px; }
.chip-pending { background: var(--surface-2); color: var(--sub); }
.chip-removed { background: var(--surface-2); color: var(--muted); }
.top .me { display: flex; align-items: center; gap: 8px; }
.top .me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ─── ワイナリー ─── */
.cover { margin: 0 -16px; aspect-ratio: 16 / 9; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-left { text-align: left; padding-top: 18px; }
.hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-row .heart { position: static; flex: none; margin-top: -4px; }
.info { display: grid; gap: 12px; margin-bottom: 16px; }
.info div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14px; }
.info dt { color: var(--muted); }
.info dd { color: var(--sub); word-break: break-all; white-space: pre-wrap; }
.section-title { font-size: 17px; font-weight: 700; margin: 28px 2px 12px; }

/* ─── マイページ ─── */
.profile .stack { justify-items: center; }
.profile .field { width: 100%; }
.avatar { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stats li { background: var(--surface); border-radius: var(--radius); padding: 16px 8px; text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 700; }
.stats span { color: var(--muted); font-size: 12px; }
.menu { margin-top: 14px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.menu a { display: flex; justify-content: space-between; padding: 16px 18px; font-size: 15px; }
.menu a + a { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }   /* 区切りは影ほどの薄さだけ */
.menu span { color: var(--muted); }
.logout { margin-top: 24px; text-align: center; }
.logout button { color: var(--muted); font-size: 14px; padding: 10px 20px; }

/* ─── 酒量シミュレーター ─── */
.weight { display: flex; justify-content: space-between; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font-size: 18px; line-height: 1; }
.stepper b { min-width: 28px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper small { color: var(--muted); font-size: 12px; margin-left: -6px; }
.sim-tabs { margin-top: 18px; }
.sim { display: grid; gap: 8px; }
.sim .drink { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.sim .drink.has { box-shadow: inset 0 0 0 1px rgba(240, 4, 127, 0.5); }
.sim .drink-text { flex: 1; display: grid; min-width: 0; }
.sim .drink-text b { font-weight: 500; }
.sim .drink-text small { color: var(--muted); font-size: 12px; }
.drink-mine input { position: absolute; opacity: 0; }
.drink-mine span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); cursor: pointer; }
.drink-mine input:checked + span { background: var(--pink); box-shadow: inset 0 0 0 5px var(--surface-2); }
.dock-sum { justify-content: space-between; gap: 12px; padding-top: 22px; }
.dock-sum .sum { flex: 1; max-width: 280px; background: var(--surface-2); border-radius: 16px; padding: 10px 14px; display: grid; }
.dock-sum .sum > span { color: var(--muted); font-size: 12px; }
.dock-sum .sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.dock-sum .sum small { font-size: 12px; margin-left: 3px; color: var(--muted); }
.pink { color: var(--pink); }

/* ─── 自分のワイン帳（2026-10-21 PLAN.md「四歩目」）: 検索ボックスと候補 ─── */
.finder { position: relative; margin: 6px 0 14px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); }
.search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; padding: 15px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--pink); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; padding: 6px;
  border-radius: 18px; background: var(--surface-2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); max-height: 62vh; overflow-y: auto;
  animation: drop 0.16s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.suggest > li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.suggest > li:hover, .suggest > li.cur { background: rgba(255, 255, 255, 0.08); }
.suggest .chip { margin: 0 0 0 auto; flex: none; }
.s-bottle { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.s-bottle svg, .s-bottle img, .s-bottle .pic-plain { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-text { display: flex; flex-direction: column; min-width: 0; }
.s-text b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-plus { flex: none; width: 22px; text-align: center; color: var(--pink); font-size: 20px; font-weight: 700; }
.suggest > li.s-add { position: sticky; bottom: -6px; margin: 4px -6px -6px; padding: 12px 16px; border-radius: 0 0 18px 18px; background: #3d3d3d; }
.suggest > li.s-add.cur, .suggest > li.s-add:hover { background: #474747; }
.suggest-small { top: calc(100% + 2px); }
.suggest-small > li { color: var(--text); font-size: 15px; padding: 10px 12px; }
.field-suggest { position: relative; }

/* 自分で追加 */
.add-drink { margin-top: 12px; animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.add-drink .field + .field, .add-drink .hint + .field { margin-top: 14px; }
.add-drink .err { margin-top: 12px; }
.chips-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick span { display: block; padding: 8px 18px; border-radius: 999px; background: var(--surface-2); color: var(--sub); font-size: 15px; cursor: pointer; }
.chips-pick input:checked + span { background: var(--text); color: #000; font-weight: 500; }
.chips-pick input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.row-btns { display: flex; gap: 10px; margin-top: 18px; }
.row-btns .btn { flex: 1; }
.card .row-btns .btn-main { box-shadow: none; }

/* 飲んだ｜お気に入り（小さく） */
.seg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-mini { display: inline-flex; margin: 4px 0 14px; padding: 3px; }
/* 醸造所の地図への入口（2026-10-24） */
.search-row { display: flex; align-items: stretch; gap: 8px; }
.search-row .search { flex: 1; min-width: 0; }
.map-link { flex: none; display: grid; place-items: center; width: 56px; border-radius: 50%; background: var(--surface-2); }
.map-link svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; }
.seg-mini > * { padding: 5px 14px; font-size: 13px; }
.seg-mini .seg-pill { top: 3px; bottom: 3px; }
/* 飲んだ｜お気に入り｜おすすめ は下線のタブ（2026-10-26。角丸は検索ボックスだけにして、入力する所と切り替える所を分ける）。白い丸はピンクの下線になってすべる */
.seg.seg-line { display: flex; flex: 1; gap: 0; margin: 10px 0 14px; padding: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16); }
.seg.seg-line > :not(.seg-pill) { flex: 1; padding: 10px 4px 11px; border-radius: 0; text-align: center; font-size: 14px; }
.seg.seg-line > .on { background: none; color: var(--text); font-weight: 700; }
.seg.seg-line .seg-pill { top: auto; bottom: 0; height: 3px; border-radius: 2px; background: var(--pink); }
/* ピンクの下線は行き過ぎて戻らない（2026-10-26 依頼者「ぐいっと戻る動きを無くしたい」）。白い丸の弾みは .seg のまま */
.seg.seg-line.ready .seg-pill { transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.3, 1), width 0.3s cubic-bezier(0.25, 0.8, 0.3, 1), opacity 0.2s; }

.drink-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stars-small { font-size: 12px; margin-top: 2px; }
.drink.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { 0%, 30% { box-shadow: 0 0 0 2px var(--pink); } 100% { box-shadow: 0 0 0 2px transparent; } }

/* ワインの画面: 前回のテイスティング・これまでの記録 */
.prose-card { margin: 0; }
.notes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.notes a > span:first-child { flex: none; }
.notes a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.notes .note-memo { flex: 1; min-width: 0; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes b { color: var(--muted); font-weight: 400; }
#mine .btn-inline { margin-top: 18px; }
.hero .chip-pending { align-self: center; margin-top: 10px; }

/* テイスティング: 年 */
.select { width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select:focus { outline: 2px solid var(--pink); outline-offset: 1px; }

/* ─── ログイン（LINE・Google だけ。2026-10-21） ─── */
.social { display: flex; flex-direction: column; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; }
.social-btn svg { width: 22px; height: 22px; flex: none; }
.social-line { background: #06C755; color: #fff; }
.social-line svg { fill: #fff; }
.social-google { background: #fff; color: #1f1f1f; }
.social .fine { margin-top: 4px; text-align: center; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.links li + li { border-top: 1px solid var(--surface-2); }
.links b { font-weight: 700; }
.links .muted { display: block; font-size: 12px; }
.links form { margin: 0; }
.links .btn-inline { width: auto; padding: 9px 16px; font-size: 14px; }
.merge-from { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.merge-from img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.stats-in { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.stats-in li { padding: 12px 4px; }

/* ─── ビール（0007）: 上の帯の種類の切り替え・グラス・色・提供方法・度数の欄 ─── */
.top-right { display: flex; align-items: center; gap: 12px; }
.seg-kind { padding: 3px; }
.seg-kind > * { padding: 4px 12px; font-size: 13px; }
.seg-kind .seg-pill { top: 3px; bottom: 3px; }
.drink-bottle .glass, .hero-bottle .glass { width: 72%; }
.s-bottle .glass { width: 100%; }
.glasses { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.glass-pick { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; transition: box-shadow 0.15s; }   /* 選ぶ前から暗くしない。選んだものはピンクの枠だけ（2026-10-24 依頼者） */
.glass-pick svg { width: 100%; max-width: 34px; height: auto; }
.glass-pick span { font-size: 11px; color: var(--sub); }
.glass-pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pink); }
.glass-one { display: flex; align-items: center; gap: 14px; }
.glass-one .bottle { width: 40px; height: 120px; }
.glass-one span { color: var(--sub); }
.aroma-blank { color: var(--muted); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.row-fields .field + .field { margin-top: 0; }
/* 公式情報を直す（九歩目）: 見出しの下の 1 行と、押すとその下に出る欄 */
.official { margin-top: 10px; }
.official-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 13px; }
.hero-left .official-note { justify-content: flex-start; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.official-form { text-align: left; margin-top: 14px; display: grid; gap: 14px; }
.official-form h2 { margin: 0; }
.official-form .hint { margin: -6px 0 0; }
.official-form .field + .field { margin-top: 0; }
/* 味の絵（十一歩目）: 一覧の左の正方形・銘柄のページの上・記録のあとの見比べ */
/* 一覧の絵はカードの左端いっぱい（余白ゼロ・上下いっぱいの正方形）。左の 2 角だけカードの丸み、右は直角。
   高さに合わせて幅を決める書き方は WebKit で幅 0 になるので、カードの高さ（96px）と同じ数を書く */
.drink-pic { flex: none; width: 96px; height: 96px; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden; background: var(--surface-2); }
.drink-pic img, .pic img, .hero-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-plain { display: block; width: 100%; height: 100%; }
.hero-pic { width: 220px; height: 220px; margin: 0 auto 14px; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.pic-note { color: var(--muted); font-size: 12px; margin: -4px 0 14px; }
/* 一番上の画像はカードの端から端まで（余白なし・上の角だけカードと同じ丸み） */
.card-photo { padding-top: 0; overflow: hidden; }
.last-pic { margin: 0 -18px 18px; aspect-ratio: 1; background: var(--surface-2); }
.last-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 写真が無い回: 写真を追加するボタン（選ぶとすぐ上がる） */
.add-photo { margin-bottom: 16px; }
.add-photo-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 14px;
  border: 1.5px dashed var(--muted); color: var(--sub); font-size: 15px; font-weight: 700; cursor: pointer; overflow: hidden; }
.add-photo-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.add-photo-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.add-photo-btn.busy { opacity: 0.6; }
.last-pic .pic-plain { display: block; width: 100%; height: 100%; }
/* 前回のテイスティング: 選んだ色（左）と選んだ香り（右）。外を香りと同じ列・同じすき間で割り、色の四角を香りの 1 枚と同じ大きさにする */
.pics { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pics figure { margin: 0; display: grid; gap: 8px; justify-items: center; color: var(--sub); font-size: 13px; }
.pic { width: 150px; height: 150px; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.hero-pics { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.hero-pics .hero-pic { margin: 0; }
.hero-photo { width: 80px; height: 120px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 上の絵のカルーセル: 新しい記録が真ん中、左へスワイプで過去。端から端まで流れる（2026-10-24） */
.hero-carousel { margin: 0 -16px 6px; }
.hero-track { position: relative; list-style: none; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 calc(50% - 110px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: none; width: 220px; scroll-snap-align: center; }
.hero-slide .hero-pic { margin: 0 0 10px; }
.hero-slide .pic-note { margin: 0; }
/* 押すと下の記録がその回に。今出している回の絵にピンクの枠（色のグラスと同じ・2026-10-25 依頼者） */
.hero-slide[data-pick-rec] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-slide[data-pick-rec] .hero-pic { position: relative; }
.hero-slide.on .hero-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--pink); pointer-events: none; }
.pic-hint { color: var(--muted); font-size: 11px; text-align: center; margin: 8px 0 0; }
.hero-pic-photo { background: var(--surface-2); }
.hero-pic-photo img { object-fit: contain; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--muted); opacity: 0.45; cursor: pointer; }
.hero-dots button.on { opacity: 1; background: var(--text); }

/* 記録のカードで比べる（2026-10-24）: 見出しの下のチェック・足される中身・味の絵の並び */
.cmp-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.cmp-check { position: relative; cursor: pointer; }
.cmp-check input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-check span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--sub); background: var(--surface-2); white-space: nowrap; }
.cmp-check span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; }
.cmp-check input:checked + span { color: #111; }
.cmp-maker input:checked + span { background: var(--gold); }
.cmp-all input:checked + span { background: var(--gray); }
.cmp-check input:checked + span::before { box-shadow: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / 100% no-repeat; }
.cmp-check input:disabled + span { opacity: 0.35; cursor: default; }
.cmp-check input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.cmp-sub h4 { font-size: 12px; font-weight: 700; margin: 16px 0 8px; }
.cmp-sub-maker h4 { color: var(--gold); }
.cmp-sub-all h4 { color: var(--gray); }
.cmp-pics { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(.2, .9, .3, 1.15), margin 0.3s; }
.cmp-pics.open { grid-template-rows: 1fr; margin-top: 18px; }
.cmp-pics-in { overflow: hidden; display: flex; gap: 10px; justify-content: center; }
.cmp-pics figure { margin: 0; flex: 1; max-width: 160px; display: grid; gap: 6px; justify-items: center; font-size: 12px; font-weight: 700; }
.cmp-pics .pic { width: 100%; height: auto; aspect-ratio: 1; }

/* ─── 醸造所の地図（2026-10-24）: 上の帯の下を全部地図に。黒とピンク ─── */
.map-wrap { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 1; }
.map-wrap > .map { position: absolute; inset: 0; background: #000; }   /* maplibregl-map の position: relative より強く */
.map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, 0.6); color: var(--muted); font-size: 10px; }
.map .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: var(--muted); }
.map .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.map .maplibregl-ctrl-group { background: var(--surface-2); }
.map .maplibregl-ctrl-group button + button { border-top-color: #444; }
.map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.map .map-home { display: grid; place-items: center; }
.map .map-home svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }   /* 日本全体に戻る（2026-10-26） */
.map .maplibregl-ctrl-group[hidden] { display: none; }
.map-legend { position: absolute; z-index: 500; top: 10px; left: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  max-width: calc(100% - 70px); padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.7); font-size: 12px; color: var(--text); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend small { color: var(--muted); font-size: 11px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-drank { background: #f0047f; }
.dot-yet { background: #ffffff; opacity: 0.8; }
/* ♥ = お気に入りの作り手だけ（2026-10-26）。押しているあいだはピンク */
.map-like { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.map-like span { color: var(--pink); }
.map-like.on { border-color: var(--pink); background: var(--pink); }
.map-like.on span { color: #fff; }
/* さらに見る（2026-10-26）: 下の札がその位置から伸びて、画面の上まで覆う板になる。中は作り手のページ（iframe・embed=1）。
   伸びるあいだは札の文字が薄れ、地は札の灰から黒へ。伸びきるころに中身が浮かぶ（.full）。上向きの濃い影で地図に覆いかぶさる */
.sheet { position: fixed; z-index: 1000; left: 12px; right: 12px; bottom: 16px; top: 12px; display: flex; flex-direction: column;
  border-radius: 18px; background: rgba(38, 38, 38, 0); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: top 0.36s cubic-bezier(0.25, 0.8, 0.3, 1), left 0.36s cubic-bezier(0.25, 0.8, 0.3, 1), right 0.36s cubic-bezier(0.25, 0.8, 0.3, 1),
    bottom 0.36s cubic-bezier(0.25, 0.8, 0.3, 1), border-radius 0.36s, background-color 0.3s, transform 0.3s cubic-bezier(0.25, 0.8, 0.3, 1); }
.sheet.grown { background: #141414; }        /* 黒い地図の上で影だけでは浮いて見えないので、板の地は少し明るい黒（中のページも同じ） */
.sheet[hidden] { display: none; }
.sheet > * { opacity: 0; transition: opacity 0.18s; }
.sheet.full > * { opacity: 1; transition: opacity 0.22s; }
.sheet-dim { position: fixed; z-index: 999; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.36s; pointer-events: none; }
.sheet-dim.on { opacity: 1; pointer-events: auto; }        /* 出ているあいだは押せる（押すと閉じる・隙間のタップが地図に通らない。2026-10-28） */
.map-card > * { transition: opacity 0.25s; }
.map-card.under > * { opacity: 0; transition: opacity 0.15s; }
.sheet-grab { flex: none; display: grid; place-items: center; height: 28px; cursor: grab; touch-action: none; }
.sheet-grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.sheet-x { position: absolute; z-index: 2; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-frame { flex: 1; width: 100%; border: 0; background: #141414; }
body.v2.embed { background: #141414; }
body.embed .page { padding-top: 16px; }
.map-empty { position: absolute; z-index: 550; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 48px));
  padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.8); color: var(--text); font-size: 13px; line-height: 1.7; text-align: center; }
.map-card { position: absolute; z-index: 600; left: 12px; right: 12px; bottom: 16px; max-width: 480px; margin: 0 auto;
  padding: 26px 18px 16px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
.map-card h2 { margin: 2px 32px 6px 0; font-size: 18px; }
.map-card-region { color: var(--muted); font-size: 12px; }
.map-card-addr { color: var(--sub); font-size: 13px; }
.map-card-drank { margin-top: 6px; color: var(--pink); font-size: 13px; font-weight: 700; }
.map-card-drank:empty { display: none; }
.map-card-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-card { transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.3, 1); }
.map-card-grab { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.map-card-grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.map-wrap.card-open .maplibregl-ctrl-bottom-right { display: none; }
.map-card-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: 20px; }
/* 寄るときの地名（縦書き・画面いっぱい・消える）と、PC で点に乗せたときの名前（2026-10-25 依頼者） */
.map-place { position: absolute; z-index: 400; inset: 0; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0; line-height: 1; font-weight: 700;
  color: #f0047f; opacity: 0; pointer-events: none; }
.map-place.show { animation: map-place 1.9s ease-out forwards; }
@keyframes map-place { 0% { opacity: 0; transform: scale(1.04); } 12% { opacity: 0.92; transform: scale(1); } 45% { opacity: 0.92; } 100% { opacity: 0; } }
.map-tip { position: absolute; z-index: 450; transform: translate(12px, -50%); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.85);
  color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
