.bistro {
  --bg: #f1e8d8;
  --card: #fff9eb;
  --line: #d7c7ae;
  --text: #2d2930;
  --dim: #6e5f53;
  --brass: #815c30;
  --wine: #762e3a;
  --night: #151d2d;
  --gold: #e0bc80;
  --display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  background: var(--bg);
}

.bistro .wrap { width: 100%; max-width: 864px; padding: 0 16px 44px; }
.bistro .brand-header {
  height: clamp(268px, 40vw, 420px);
  margin: 0 -16px 0;
  background: var(--night);
  border-radius: 0;
  border-bottom: 3px solid #b18a5a;
}
.bistro .luxury-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-position: center 53%;
}
.bistro .brand-shade {
  display: block;
  z-index: 0;
  background: linear-gradient(180deg, transparent 30%, #141b2b30 51%, #141b2bf5 100%);
}
.bistro .brand-content {
  position: absolute;
  inset: auto 16px 30px;
  padding: 0;
  text-align: center;
}
.bistro .brand-content h1 {
  font: 900 clamp(31px, 6vw, 51px)/1.15 var(--display);
  letter-spacing: .07em;
  color: #fff6e4;
}
.bistro .brand-kicker { font-size: 14px; margin: 11px 0 0; color: #f7d7a6; }

.bistro .card {
  background: var(--card);
  border-color: var(--line);
  border-radius: 12px;
}
.bistro h2, .bistro .kichi h3 { font-family: var(--display); }
.bistro .restaurant-card {
  position: relative;
  max-width: 575px;
  padding: 20px clamp(16px, 4vw, 30px);
  margin: 16px auto 24px;
  border: 1px solid #bf9e73;
  outline: 1px solid #e1cdb0;
  outline-offset: -5px;
  box-shadow: 0 10px 26px #38241a16;
}
.bistro .restaurant-card h2 {
  font-size: clamp(23px, 5vw, 29px);
  text-align: center;
  margin: 0 0 16px;
  color: var(--wine);
}
.bistro-birth { margin-bottom: 10px; }
.bistro-birth label, .bistro .trip-form label { color: #5b493c; font-size: 13px; }
.bistro .trip-form input, .bistro .trip-form select {
  background: #fffcf4;
  border-color: #cab494;
  color: #2d2930;
}
.bistro .trip-form { gap: 5px; }
.bistro .trip-form button, .bistro #restaurantSubmit {
  background: var(--wine);
  color: #fff8eb;
  border: 1px solid #65222e;
  box-shadow: 0 2px 0 #481824;
  white-space: normal;
}
.bistro .trip-form button:hover { background: #622430; }
.bistro .restaurant-card a { color: #69452d; }
.bistro .restaurant-card a:focus-visible { outline-color: #aa742f; }
.bistro #restaurantResults:empty { display: none; }
.bistro #restaurantResults {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.bistro .restaurant-result {
  background: #fffcf4;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.bistro .restaurant-result strong { font: 700 17px/1.5 var(--display); }
.bistro .restaurant-result .best, .bistro .restaurant-result .good { font-weight: 800; font-size: 12px; }
.bistro .restaurant-result .note { margin: 0; }
.bistro .restaurant-card > .note { margin: 10px 0 0; }

@media (min-width: 700px) {
  .bistro .brand-header { margin-inline: 0; border-radius: 0 0 13px 13px; }
  .bistro .restaurant-card { margin-top: -13px; }
}

.genre-advice {
  padding: 12px;
  margin: 12px 0;
  background: #f8ebd6;
  border: 1px solid #d7b98f;
  border-radius: 8px;
  color: #492a2e;
}
.genre-advice summary {
  cursor: pointer;
  color: #6e5f53;
  font-size: 13px;
  font-weight: 700;
}
.bistro .genre-advice {
  margin: 0 0 16px;
  padding: 14px;
  border-color: #d7b98f;
}
.bistro label[for="genreMood"] {
  color: var(--wine);
  font: 900 24px/1.45 var(--display);
  margin: 7px 0 4px;
}
.bistro #genreVoice:hover { background: #f4e4ca; }
.genre-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.genre-advice textarea {
  width: 100%;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid #cab494;
  border-radius: 8px;
  background: #fffcf4;
  color: #2d2930;
  font: inherit;
  resize: vertical;
}
.genre-suggestions:not(:empty) { margin-top: 8px; }
.genre-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.genre-suggestions button {
  min-height: 44px;
  background: #fff9eb;
  color: #622430;
  border-color: #cab494;
  white-space: normal;
}

#birthForm fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#birthForm legend { padding: 0; font-size: 14px; font-weight: 800; color: #5b493c; }
.birth-wheels {
  --wheel-row: 38px;
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  margin-top: 5px;
  background: #fffdf7;
  border: 1px solid #e2d4bf;
  border-radius: 12px;
  isolation: isolate;
}
.birth-wheels::before {
  content: "";
  position: absolute;
  inset: calc(50% - var(--wheel-row) / 2) 5px auto;
  height: var(--wheel-row);
  background: #f0e9dd;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}
.birth-wheel {
  min-width: 0;
  height: calc(var(--wheel-row) * 5);
  padding-block: calc(var(--wheel-row) * 2);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
  text-align: center;
}
.birth-wheel::-webkit-scrollbar { display: none; }
.birth-wheel span {
  display: block;
  height: var(--wheel-row);
  line-height: var(--wheel-row);
  scroll-snap-align: center;
  font-size: clamp(17px, 5vw, 23px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #786d60;
  cursor: pointer;
}
.birth-wheel [data-distance="0"] { color: #29232a; }
.birth-wheel [data-distance="2"] { opacity: .58; }
.birth-wheel [data-distance="3"] { opacity: .4; }
.birth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.birth-actions button, #birthEdit { min-height: 44px; color: #654231; background: #f7ead5; border-color: #cab494; }
#birthStatus { margin: 4px 0 0; }
#birthStatus:empty { display: none; }

.daily-menu {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7ead5;
  border: 1px solid #d7b98f;
}
.daily-menu h3, .daily-menu p { margin: 0; }
.daily-menu h3 { color: var(--wine); font: 800 16px/1.6 var(--display); }
.daily-menu .daily-menu-hint { font: 800 18px/1.5 var(--display); }
.daily-menu .daily-menu-examples { margin-top: 4px; color: #6e5f53; font-size: 13px; }

.genre-input { position: relative; }
.genre-input #genreMood {
  display: block;
  min-height: 68px;
  padding-inline-end: 61px;
  resize: vertical;
}
.bistro #genreVoice {
  position: absolute;
  inset-inline-end: 9px;
  bottom: 9px;
  width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: #fff3e2;
  color: var(--wine);
  border-color: #bf9e73;
  border-radius: 50%;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.bistro .restaurant-map-row {
  justify-self: start;
  min-height: 44px;
  background: #f7ead5;
  color: var(--wine);
  border-color: #bf9e73;
}
.restaurant-map-pin {
  border: 3px solid #fff9eb;
  border-radius: 50%;
  box-shadow: 0 1px 6px #0007;
  background: #2563cf;
}
.restaurant-map-pin.best { background: #16834d; }
.restaurant-map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #fff9eb;
  border-radius: 50%;
}
.bistro .mapacts { flex-wrap: wrap; justify-content: start; }
.bistro .mapacts #goBtn.restaurant-go { flex: 0 0 100%; white-space: nowrap; }
.bistro .mapframe.pop:has(.restaurant-go:not([hidden])) #popInfo { bottom: 115px; }

#homeDialog {
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#homeDialog::backdrop { background: #151d2d99; }
#homeDialog form button { min-height: 44px; }

#restaurantListLink { display: inline-block; padding: 10px 6px; color: var(--wine); font-weight: 800; }
#restaurantResultPanel { scroll-margin-top: 12px; }

.guide-scroll .guide-food-name { color: #762e3a; font-size: 18px; font-weight: 800; }
#guideFoodSearch {
  min-height: 44px;
  color: #fff8eb;
  background: #762e3a;
  border-color: #65222e;
  white-space: normal;
}
#restaurantMapContextLabel { margin: 4px 0 0; overflow-wrap: anywhere; }

.bistro .restaurant-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 4px 0;
}
.bistro .restaurant-contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 9px;
  color: #762e3a;
  background: #fff3e2;
  border: 1px solid #bf9e73;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.bistro #tripCard .trip-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: .25em;
  margin: 0 0 15px;
  color: #762e3a;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .025em;
}
.bistro #tripCard .trip-title span { white-space: nowrap; }
@media (max-width: 420px) {
  .bistro #tripCard .trip-title { flex-direction: column; align-items: center; gap: 2px; }
  .bistro #tripCard .trip-title span:first-child { font-size: .82em; }
}

#restaurantOriginNote {
  margin: 2px 0;
  color: #6e5f53;
  font-size: 12px;
  font-weight: 400;
}
#restaurantUseCurrent {
  min-height: 44px;
  margin: 4px 0 8px;
  color: #69452d;
  background: #fff3e2;
  border-color: #bf9e73;
}
