/* /activity/ 「いま開催中」 as one afternoon (Rako FB 11): inside the block's own band, facility tabs and each
   time with its options replace the facility cards. Mobile first: two options in view, the rest sideways. */
.bub-site-page .activity-now.has-activity-day .activity-now-rail { display: none; }
.bub-site-page .activity-day-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-bottom: 1px solid var(--line); }
.bub-site-page .activity-day-tabs button { min-height: 48px; margin-bottom: -1px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: rgb(47 47 47 / 60%); font: 700 15px/24px var(--font-ja); cursor: pointer; }
.bub-site-page .activity-day-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.bub-site-page .activity-day-slot { padding: 16px 0; border-bottom: 1px solid var(--line); }
/* 1日目 / 2日目 (2026-10-16): a quiet label over the day's first time. */
.bub-site-page .activity-day-day { margin: 24px 0 0; font-size: 13px; line-height: 20px; font-weight: 700; color: rgb(47 47 47 / 72%); }
.bub-site-page .activity-day-time { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.bub-site-page .activity-day-time time { font: 700 18px/26px Inter, var(--font-ja); }
.bub-site-page .activity-day-time span { font-size: 13px; line-height: 20px; color: rgb(47 47 47 / 72%); }
/* Flex, not % grid columns: iPhone Safari keeps a stale row height after a hidden tab is shown (10/17). */
.bub-site-page .activity-day-options { display: flex; align-items: flex-start; gap: 10px; margin: 10px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.bub-site-page .activity-day-options::-webkit-scrollbar { display: none; }
.bub-site-page .activity-day-option { flex: 0 0 40%; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.bub-site-page .activity-day-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--surface); }
.bub-site-page .activity-day-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bub-site-page .activity-day-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 20px; word-break: keep-all; overflow-wrap: anywhere; }
.bub-site-page .activity-day-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) {
  .bub-site-page .activity-day-option:hover .activity-day-name { text-decoration: underline; text-underline-offset: 4px; }
}
/* The 1泊2日 page (owner, 2026-10-14): on phones a small button rises above the tab bar while the afternoon's
   times are on screen (activity-day.js); the web has a button beside the title instead. */
.bub-site-page .activity-now-entry { display: none; }
/* Centred by margins, not left: 50% — iPhone Safari caps a left: 50% box at half the screen and the label spilled out. */
.activity-day-float { position: fixed; z-index: 34; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom) + 12px); display: flex; width: max-content; max-width: calc(100% - 32px); margin-inline: auto; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 4px; border-radius: 999px; background: #2f2f2f; color: #fcfcfc; font-size: 13px; line-height: 20px; font-weight: 700; white-space: nowrap; text-decoration: none; box-shadow: 0 2px 8px rgb(0 0 0 / 16%); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease; }
.activity-day-float.is-up { opacity: 1; pointer-events: auto; transform: none; }
.activity-day-float img { flex: none; width: 36px; height: 36px; padding: 3px; border-radius: 50%; background: #ece1d6; object-fit: contain; }
.activity-day-float[data-season="summer"] img { background: #dae4f1; }
.activity-day-float[data-season="earlysummer"] img { background: #d5d9d2; }
.activity-day-float[data-season="holiday"] img { background: #f0d1cb; }
.activity-day-float[data-season="winter"] img { background: #dfdad4; }
.activity-day-float[data-season="spring"] img { background: #ebdad6; }
.activity-day-float .ic { flex: none; width: 16px; height: 16px; }
.activity-day-float span { overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .activity-day-float { transition: none; }
}
.bub-site-page .activity-day-actions { display: grid; margin-top: 4px; }
/* Two full-width rows with a chevron, as 掲載実績 and the FAQ list: clearly tappable, lighter than buttons. */
.bub-site-page .activity-day-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 700; text-decoration: none; }
.bub-site-page .activity-day-row small { margin-left: 8px; color: rgb(47 47 47 / 64%); font-size: 13px; font-weight: 400; }
.bub-site-page .activity-day-row .ic { flex: none; width: 18px; height: 18px; }
.bub-site-page .activity-day-slot:has(+ .activity-day-actions) { border-bottom: 0; }
/* Phones reach the 1泊2日 page from the floating button; the web keeps the row after the last time. */
.bub-site-page .activity-day-row.is-continue { display: none; }

@media (min-width: 1024px) {
  .activity-day-float { display: none; }
  .bub-site-page .activity-day-row.is-continue { display: inline-flex; gap: 2px; min-height: 40px; padding: 0 12px 0 16px; border: 0; border-radius: 999px; background: #2f2f2f; color: #fcfcfc; font-size: 14px; line-height: 20px; }
  .bub-site-page .activity-day-row.is-continue .ic { width: 16px; height: 16px; }
  .bub-site-page .activity-now-entry { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 0 10px 0 14px; height: 34px; border-radius: 999px; background: #2f2f2f; color: #fcfcfc; font-size: 13px; line-height: 20px; font-weight: 700; text-decoration: none; }
  .bub-site-page .activity-now-entry .ic { width: 16px; height: 16px; }
  .bub-site-page .activity-day-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
  .bub-site-page .activity-day-tabs { grid-template-columns: repeat(3, 160px); }
  .bub-site-page .activity-day-slot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 20px; }
  .bub-site-page .activity-day-time { flex-direction: column; gap: 2px; }
}
/* Web and tablets (owner, 2026-10-06: the phone rail ran 374px photos off the side at 1000px, and six
   narrow columns left half the row empty): every option of a time in view, four to a row, 4:3 photos. */
@media (min-width: 768px) {
  .bub-site-page .activity-day-options { display: grid; align-items: stretch; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 12px 0 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .bub-site-page .activity-day-photo { aspect-ratio: 16 / 10; border-radius: 12px; }
  .bub-site-page .activity-day-name { font-size: 14px; line-height: 21px; }
}
@media (min-width: 1024px) {
  .bub-site-page .activity-day-options { margin: 0; }
}
/* 3 · Option names fold between phrases, not inside a word. */
.bub-site-page .activity-day-name { word-break: auto-phrase; text-wrap: pretty; overflow-wrap: normal; line-break: strict; }
/* Who the activity is for, under its name (owner, 2026-10-11). */
.bub-site-page .activity-day-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -2px; }
.bub-site-page .activity-day-for { padding: 0 6px; border-radius: 4px; background: rgb(47 47 47 / 7%); color: rgb(47 47 47 / 80%); font-size: 11px; line-height: 18px; font-weight: 500; }
.bub-site-page .activity-day-for.is-status { background: var(--color-muchu, #d56e59); color: #fcfcfc; font-weight: 700; }
/* 「もっと見る」 (owner, 2026-10-16): the evening and day two sit folded under the afternoon, their first time
   showing through a fade, and open in place. */
.bub-site-page .activity-day-more.is-folded { position: relative; max-height: 168px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.bub-site-page .activity-day-more.is-folded .activity-day-slot:last-child { border-bottom: 0; }
.bub-site-page .activity-day-panel { overflow-anchor: none; }
.bub-site-page .activity-day-more-button { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 48px; margin-top: -12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fcfcfc; color: var(--ink); font: 700 14px/20px var(--font-ja); cursor: pointer; }
.bub-site-page .activity-day-more-button .ic { width: 16px; height: 16px; }
.bub-site-page .activity-day-more-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 1024px) {
  .bub-site-page .activity-day-more.is-folded { max-height: 156px; }
  .bub-site-page .activity-day-more-button { width: auto; min-height: 40px; margin: 0; padding: 0 16px 0 20px; }
  /* One button at a time (owner, 2026-10-16): the title already has 「1泊2日を見る」, so while the evening is folded
     only 「もっと見る」 shows; once it opens, the season-page row follows the last time. */
  .bub-site-page .activity-day-actions:has([data-activity-day-more-button]:not([hidden])) .activity-day-row.is-continue { display: none; }
}
