/* 天才キャンプ, made special (owner 2026-10-12: 「너무 단촐」): the hero plays camp photographs as a reel, the next
   camp counts down in the site's hand-drawn figures, each strength carries a photograph in a freehand frame, and
   the camp photos form one mosaic. Nothing holds the scroll. Built by tensaiCampBody (scripts/build-url-pages.mjs)
   and assets/js/tensai-camp.js. */

/* Hero reel */
:root .bub-site-page main.tensaicamp-page .tensai-hero { overflow: hidden; }
:root .bub-site-page main.tensaicamp-page .tensai-hero-media img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s linear; }
:root .bub-site-page main.tensaicamp-page .tensai-hero-media img.is-on { opacity: 1; transform: scale(1); }
:root .bub-site-page main.tensaicamp-page .tensai-reel-bars { position: absolute; z-index: 2; top: calc(var(--header-height, 64px) + 12px); left: var(--gutter, 20px); right: var(--gutter, 20px); display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
:root .bub-site-page main.tensaicamp-page .tensai-reel-bars li { flex: 1; height: 2px; overflow: hidden; border-radius: 1px; background: rgb(252 252 252 / 32%); }
:root .bub-site-page main.tensaicamp-page .tensai-reel-bars i { display: block; width: 0; height: 100%; background: #fcfcfc; }
:root .bub-site-page main.tensaicamp-page .tensai-reel-bars li.is-done i { width: 100%; }
:root .bub-site-page main.tensaicamp-page .tensai-reel-bars li.is-on i { animation: tensai-bar 5s linear forwards; }
@keyframes tensai-bar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  :root .bub-site-page main.tensaicamp-page .tensai-hero-media img { transition: none; transform: none; }
}

/* The next camp */
:root .bub-site-page main.tensaicamp-page .tensai-next { position: relative; display: grid; justify-items: center; gap: 6px; width: 100%; margin: 56px 0 0; padding: 72px var(--gutter, 20px) 64px; border-radius: 0; background: #2f2f2f; color: #fcfcfc; text-align: center; }
/* The site's dark bands open and close on the hand-drawn edge (TOP, season pages, みなかみ). */
:root .bub-site-page main.tensaicamp-page .tensai-next::before, :root .bub-site-page main.tensaicamp-page .tensai-next::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; pointer-events: none; -webkit-mask: url('/assets/images/top-handdrawn-edge.png') center -72px / 140% 198px no-repeat; mask: url('/assets/images/top-handdrawn-edge.png') center -72px / 140% 198px no-repeat; }
:root .bub-site-page main.tensaicamp-page .tensai-next::before { top: -17px; background: #2f2f2f; }
:root .bub-site-page main.tensaicamp-page .tensai-next::after { bottom: -1px; background: var(--paper, #fcfcfc); }
:root .bub-site-page main.tensaicamp-page .tensai-next[hidden] { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-next-label { margin: 0; color: rgb(252 252 252 / 64%); font-size: 12px; line-height: 18px; font-weight: 700; }
:root .bub-site-page main.tensaicamp-page .tensai-next-when { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 0; }
:root .bub-site-page main.tensaicamp-page .tensai-next-when b { font: 700 44px/1 var(--font-num), sans-serif; letter-spacing: -.02em; }
:root .bub-site-page main.tensaicamp-page .tensai-next-when span { font-size: 14px; font-weight: 700; color: rgb(252 252 252 / 80%); }
:root .bub-site-page main.tensaicamp-page .tensai-next-plan { max-width: 24em; margin: 4px 0 0; font-size: 15px; line-height: 1.6; font-weight: 700; word-break: auto-phrase; text-wrap: balance; }
:root .bub-site-page main.tensaicamp-page .tensai-next-count { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; font-size: 15px; font-weight: 700; }
:root .bub-site-page main.tensaicamp-page .tensai-next-count[hidden] { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-next-count b { color: #d56e59; font: 400 72px/.9 murmur, bubbub, cursive; text-shadow: 0 0 24px rgb(213 110 89 / 35%); }
:root .bub-site-page main.tensaicamp-page .tensai-next-actions { display: grid; justify-items: center; gap: 12px; margin-top: 16px; }
:root .bub-site-page main.tensaicamp-page .tensai-next-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fcfcfc; color: #2f2f2f; font-size: 15px; font-weight: 700; text-decoration: none; }
:root .bub-site-page main.tensaicamp-page .tensai-next-cta .ic { width: 18px; height: 18px; }
:root .bub-site-page main.tensaicamp-page .tensai-next-all { color: #fcfcfc; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Strengths, each with a photograph */
:root .bub-site-page main.tensaicamp-page .tensai-strength-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; border: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card > * { grid-column: 1 / -1; grid-row: auto; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title > span::before { content: none; display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title > span { width: auto; height: auto; isolation: auto; place-items: initial; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-photo { margin: 0 0 14px; width: 100%; aspect-ratio: 5 / 4; border-radius: 0; background: none; overflow: hidden; -webkit-mask: var(--tensai-mask) center / 100% 100% no-repeat; mask: var(--tensai-mask) center / 100% 100% no-repeat; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-photo img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title { display: flex !important; align-items: baseline; gap: 12px; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title > span { display: inline !important; color: #8aadd8; font: 400 44px/1 murmur, bubbub, cursive; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title h3 { margin: 0; font-size: 20px; line-height: 1.5; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card > p { margin-top: 8px; font-size: 14px; line-height: 1.9; }

/* The camp photos as one mosaic */
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure { margin: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:first-child { grid-column: 1 / -1; }
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:first-child img { aspect-ratio: 16 / 10; }
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:last-child:nth-child(even) { grid-column: 1 / -1; }
:root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:last-child:nth-child(even) img { aspect-ratio: 16 / 10; }

@media (min-width: 768px) {
  :root .bub-site-page main.tensaicamp-page .tensai-next { margin-top: 96px; padding: 104px var(--gutter, 20px) 96px; }
  :root .bub-site-page main.tensaicamp-page .tensai-next-when b { font-size: 56px; }
  :root .bub-site-page main.tensaicamp-page .tensai-next-count b { font-size: 104px; }
  :root .bub-site-page main.tensaicamp-page .tensai-next-actions { grid-auto-flow: column; align-items: center; gap: 24px; }
  :root .bub-site-page main.tensaicamp-page .tensai-strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 56px; }
  :root .bub-site-page main.tensaicamp-page .tensai-strength-card:nth-child(even) { margin-top: 72px; }
  :root .bub-site-page main.tensaicamp-page .tensai-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  :root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:last-child:nth-child(even) { grid-column: auto; }
  :root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:last-child:nth-child(even) img { aspect-ratio: 4 / 3; }
  :root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
  :root .bub-site-page main.tensaicamp-page .tensai-gallery-grid figure:first-child img { height: 100%; aspect-ratio: auto; }
}

/* Plans as cards (owner 10/12): one tinted card per plan — photo on top, the plan in the middle, the price on its
   own line at the foot — so the rail reads as separate plans side by side. */
:root .bub-site-page main.tensaicamp-page .tensai-plan-card { display: flex; flex-direction: column; overflow: hidden; border: 0; border-radius: 16px; background: #eef1f1; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card > figure { margin: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card > figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-copy { display: flex; flex-direction: column; flex: 1; margin: 0; padding: 16px 18px 18px; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-copy h3 { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; word-break: auto-phrase; text-wrap: pretty; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-meta { display: flex; flex-direction: column; flex: 1; margin-top: 14px; margin-bottom: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-price { margin-top: auto; padding-top: 14px; border-top: 1px solid rgb(47 47 47 / 12%); }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card.is-ended { background: #f4f5f5; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-dates li { background: #fcfcfc; }

/* Strengths, compact (owner 10/12: 「밋밋한데 스페이스만 차지함」): one sideways row of four cards on a phone with
   the next one peeking, four columns on a wide screen — each a framed photo, a large number, the name and a line. */
:root .bub-site-page main.tensaicamp-page .tensai-strength-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; gap: 16px; margin: 24px calc(var(--gutter, 20px) * -1) 0; padding: 0 var(--gutter, 20px) 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-grid::-webkit-scrollbar { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card { scroll-snap-align: start; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card:nth-child(even) { margin-top: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-photo { aspect-ratio: 4 / 3; margin-bottom: 10px; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title > span { font-size: 36px; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title h3 { font-size: 17px; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-card > p { margin-top: 6px; font-size: 13px; line-height: 1.8; }
@media (min-width: 768px) {
  :root .bub-site-page main.tensaicamp-page .tensai-strength-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  :root .bub-site-page main.tensaicamp-page .tensai-strength-card:nth-child(even) { margin-top: 0; }
}
:root .bub-site-page main.tensaicamp-page .tensai-strength-title > span { flex: none; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-strength-title h3 { min-width: 0; word-break: auto-phrase; }

/* Refined plan cards (owner 10/12): where it runs in the top line; a running plan shows only the dates to
   come with the next one dark; price and 予約する share the foot (two venues name theirs on a row below);
   an ended plan steps back in grey and keeps no button. */
:root .bub-site-page main.tensaicamp-page .tensai-plan-kicker .tensai-plan-venue { color: #2f2f2f; font-weight: 700; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-kicker { flex-wrap: wrap; row-gap: 4px; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-kicker > * { flex: none; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card:not(.is-ended) .tensai-plan-dates li.is-past { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-dates li.is-next { background: #2f2f2f; color: #fcfcfc; box-shadow: none; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(47 47 47 / 12%); }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot .tensai-plan-price { display: grid; gap: 2px; justify-items: start; margin: 0; padding: 0; border: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot .tensai-plan-price strong { font-size: 24px; line-height: 28px; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot .tensai-plan-price small { margin: 0; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-actions { display: flex; gap: 8px; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-book { justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot.has-venues .tensai-plan-actions { flex: 1 0 100%; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-foot.has-venues .tensai-plan-book { flex: 1 1 0; min-width: 0; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card.is-ended :is(.tensai-plan-actions, .tensai-plan-venue) { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card.is-ended > figure img { filter: grayscale(1); opacity: .55; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card.is-ended .tensai-plan-copy { opacity: .6; }

/* Shorter cards (owner 10/12): what every plan shares in one line above the rail; a plainer, lower photo
   with a start-here mark on the first plan; two words for what the child does in place of the description. */
:root .bub-site-page main.tensaicamp-page .tensai-plan-terms { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; margin: 0 0 16px; padding: 0; list-style: none; color: #2f2f2f; font-size: 13px; line-height: 20px; font-weight: 700; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-terms li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-terms .ic { width: 15px; height: 15px; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card > figure { position: relative; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card > figure img { aspect-ratio: auto; height: 170px; }
/* On a phone the calendar icon alone names the dates, so they keep to one line. */
@media (max-width: 767px) {
  :root .bub-site-page main.tensaicamp-page .tensai-plan-dates dt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
:root .bub-site-page main.tensaicamp-page .tensai-plan-first { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #d56e59; color: #fcfcfc; font-size: 12px; line-height: 18px; font-weight: 700; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-card.is-ended .tensai-plan-first { display: none; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-tags li { padding: 3px 10px; border: 1px solid rgb(47 47 47 / 18%); border-radius: 999px; color: #2f2f2f; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
:root .bub-site-page main.tensaicamp-page .tensai-plan-copy .tensai-plan-text.sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 1024px) {
  :root .bub-site-page main.tensaicamp-page .tensai-plan-card > figure img { height: 220px; }
}
