/* KITASAN AI 勉強会のバナー（5つの柄）2026-11-09。sem-banner.js と組。LP と管理画面で同じ */
.sb { container-type: inline-size; width: 100%; font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif; line-height: 1.35; }
.sb * { box-sizing: border-box; }
.sb-box { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 7; min-height: 210px; display: flex; color: #fff; }
.sb-in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding: 4cqw 5cqw; max-width: 74%; }
.sb-k { margin: 0; font: 700 clamp(10px, 1.7cqw, 15px)/1.3 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif; letter-spacing: .14em; }
.sb-th { margin: 0; font: 400 clamp(19px, 4.6cqw, 46px)/1.22 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; }
.sb-sub { margin: 0; font-size: clamp(12px, 1.9cqw, 18px); font-weight: 700; opacity: .9; }
.sb-when { margin: .6cqw 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2cqw 2cqw; }
.sb-date { font: 700 clamp(20px, 4.4cqw, 44px)/1 'Space Grotesk', sans-serif; letter-spacing: .02em; }
.sb-date small { font-size: .42em; margin-left: .4em; letter-spacing: .14em; }
.sb-time { font: 700 clamp(14px, 2.4cqw, 24px)/1 'Space Grotesk', sans-serif; }
.sb-tag { display: inline-block; padding: .35em .8em; border-radius: 999px; font-size: clamp(11px, 1.5cqw, 14px); font-weight: 900; }
.sb-face { position: absolute; z-index: 1; right: 3cqw; bottom: 0; height: 88%; width: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50% 50% 0 0; }

/* 1. 映画館 */
.sb-cinema .sb-box { background: radial-gradient(ellipse 60% 70% at 40% 45%, #2a0a0e 0%, #0b0203 70%, #000 100%); }
.sb-cinema .sb-curtain { position: absolute; top: 0; bottom: 0; width: 7%; z-index: 1; background: repeating-linear-gradient(90deg, #a10d1e 0 12px, #6d0712 12px 22px); box-shadow: inset -8px 0 18px rgba(0, 0, 0, .5); }
.sb-cinema .sb-curtain.l { left: 0; } .sb-cinema .sb-curtain.r { right: 0; transform: scaleX(-1); }
.sb-cinema .sb-lights { position: absolute; left: 7%; right: 7%; top: 0; height: 6px; z-index: 1; background: radial-gradient(circle, #ffd84a 0 2px, transparent 3px) 0 0 / 22px 6px repeat-x; opacity: .85; }
.sb-cinema .sb-in { padding-left: 11cqw; }
.sb-cinema .sb-k { color: #ffd84a; } .sb-cinema .sb-k b { color: #e50914; margin-left: .6em; }
.sb-cinema .sb-tag { background: #e50914; color: #fff; }
.sb-cinema .sb-face { right: 9cqw; filter: grayscale(.15) contrast(1.05); box-shadow: 0 0 60px rgba(255, 216, 74, .25); }

/* 2. チケット */
.sb-ticket .sb-box { background: #ffd84a; color: #111; border-radius: 14px; }
.sb-ticket .sb-box::before, .sb-ticket .sb-box::after { content: ''; position: absolute; z-index: 3; right: calc(27% - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--sb-bg, #000); }
.sb-ticket .sb-box::before { top: -14px; } .sb-ticket .sb-box::after { bottom: -14px; }
.sb-ticket .sb-main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding: 4cqw 5cqw; background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(0, 0, 0, .035) 18px 20px); }
.sb-ticket .sb-k { color: #8a6a00; }
.sb-ticket .sb-note { margin: .6cqw 0 0; display: flex; flex-wrap: wrap; gap: 1cqw 2cqw; align-items: center; font-size: clamp(11px, 1.6cqw, 15px); font-weight: 700; }
.sb-ticket .sb-tag { background: #111; color: #ffd84a; }
.sb-ticket .sb-stub { width: 27%; flex: none; border-left: 3px dashed rgba(0, 0, 0, .45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; padding: 2cqw; background: #f5c800; text-align: center; }
.sb-ticket .sb-sm { font: 700 clamp(11px, 1.6cqw, 15px)/1 'Space Grotesk', sans-serif; letter-spacing: .2em; }
.sb-ticket .sb-md { font: 700 clamp(26px, 6.2cqw, 62px)/1 'Space Grotesk', sans-serif; }
.sb-ticket .sb-w { font-weight: 900; font-size: clamp(12px, 1.8cqw, 17px); }
.sb-ticket .sb-time { padding: .3em .7em; background: #111; color: #ffd84a; border-radius: 6px; font-size: clamp(12px, 2cqw, 20px); }
.sb-ticket .sb-no { font: 700 clamp(9px, 1.2cqw, 12px)/1 'Space Grotesk', sans-serif; letter-spacing: .2em; opacity: .6; }

/* 3. 黒板の教室 */
.sb-board .sb-box { background: #1f4a3a; border: clamp(6px, 1.4cqw, 14px) solid #7a5230; box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); }
.sb-board .sb-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, .05), transparent 50%); }
.sb-board .sb-k { color: #f7e9a8; letter-spacing: .06em; } .sb-board .sb-k span { opacity: .75; }
.sb-board .sb-th { font-family: 'Yuji Syuku', 'Zen Kaku Gothic New', serif; font-weight: 400; color: #fff; text-shadow: 0 0 1px rgba(255, 255, 255, .6); text-decoration: underline wavy rgba(255, 216, 74, .7); text-underline-offset: .28em; text-decoration-thickness: 2px; }
.sb-board .sb-sub { color: #e7f3ec; }
.sb-board .sb-date { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: clamp(18px, 3.4cqw, 34px); color: #ffd84a; }
.sb-board .sb-time { color: #fff; }
.sb-board .sb-tag { border: 2px solid #fff; color: #fff; }
.sb-board .sb-tray { position: absolute; left: 0; right: 0; bottom: 0; height: 5%; background: #6a4526; z-index: 1; display: flex; gap: 2cqw; padding-left: 8cqw; align-items: center; }
.sb-board .sb-tray i { width: 5cqw; height: 45%; border-radius: 3px; background: #fff; } .sb-board .sb-tray i:nth-child(2) { background: #ffd84a; } .sb-board .sb-tray i:nth-child(3) { background: #ff9bb0; width: 3cqw; }
.sb-board .sb-face { bottom: 5%; height: 80%; border-radius: 50%; border: 3px solid #f7e9a8; }

/* 4. ネオン */
.sb-neon .sb-box { background: linear-gradient(120deg, #07011a 0%, #160532 55%, #04122b 100%); }
.sb-neon .sb-box::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(110, 231, 255, .06) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, rgba(255, 79, 216, .05) 1px, transparent 1px) 0 0 / 22px 100%; }
.sb-neon .sb-k { color: #6ee7ff; text-shadow: 0 0 10px rgba(110, 231, 255, .8); }
.sb-neon .sb-live { color: #ff4f6d; text-shadow: 0 0 10px rgba(255, 79, 109, .9); margin-right: .6em; }
.sb-neon .sb-th { color: #fff; text-shadow: 0 0 6px #ff4fd8, 0 0 18px rgba(255, 79, 216, .75), 0 0 36px rgba(255, 79, 216, .45); }
.sb-neon .sb-sub { color: #cfe9ff; }
.sb-neon .sb-date { color: #6ee7ff; text-shadow: 0 0 12px rgba(110, 231, 255, .8); }
.sb-neon .sb-time { color: #fff; }
.sb-neon .sb-tag { border: 2px solid #ff4fd8; color: #ffd6f6; box-shadow: 0 0 12px rgba(255, 79, 216, .6), inset 0 0 8px rgba(255, 79, 216, .4); }
.sb-neon .sb-face { border-radius: 50%; bottom: 8%; height: 76%; border: 3px solid #6ee7ff; box-shadow: 0 0 22px rgba(110, 231, 255, .7); }

/* 5. お知らせ（公文書） */
.sb-paper .sb-box { background: #fbf8f1; color: #1d1d1d; border: 1px solid #d9d2c3; }
.sb-paper .sb-box::before { content: ''; position: absolute; left: 4cqw; right: 4cqw; top: 3cqw; bottom: 3cqw; border: 1.5px solid #1d1d1d; outline: 1px solid #1d1d1d; outline-offset: 4px; pointer-events: none; }
.sb-paper .sb-in { max-width: 80%; padding: 5cqw 7cqw; gap: 1.1cqw; font-family: 'BIZ UDPGothic', 'Zen Kaku Gothic New', sans-serif; }
.sb-paper .sb-k { display: flex; gap: 3cqw; letter-spacing: .04em; font-family: 'BIZ UDPGothic', sans-serif; color: #444; }
.sb-paper .sb-to { margin: 0; font-size: clamp(11px, 1.7cqw, 16px); font-weight: 700; }
.sb-paper .sb-th { font-family: 'BIZ UDPGothic', 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: clamp(18px, 3.6cqw, 36px); letter-spacing: .12em; }
.sb-paper .sb-th small { display: block; margin-top: .4em; font-size: .62em; letter-spacing: .02em; color: #9b1c1c; }
.sb-paper .sb-sub { color: #333; opacity: 1; }
.sb-paper .sb-when { flex-direction: column; align-items: flex-start; gap: .4cqw; font-size: clamp(12px, 1.9cqw, 18px); font-weight: 700; }
.sb-paper .sb-when b { font-size: 1.1em; }
.sb-paper .sb-stamp { position: absolute; z-index: 2; right: 8cqw; top: 50%; transform: translateY(-50%) rotate(-12deg); width: 17cqw; aspect-ratio: 1; border: 4px solid #c8102e; border-radius: 50%; color: #c8102e; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; opacity: .85; }
.sb-paper .sb-stamp span { font: 700 clamp(9px, 1.5cqw, 15px)/1 'Space Grotesk', sans-serif; letter-spacing: .1em; }
.sb-paper .sb-stamp b { font-size: clamp(14px, 3cqw, 30px); margin-top: .2em; }

/* スマホ（バナーの幅が狭いとき）：縦長にして、顔は小さく右上 */
@container (max-width: 560px) {
  .sb-box { aspect-ratio: auto; min-height: 0; }
  .sb-in { max-width: 100%; padding: 22px 20px 20px; gap: 8px; }
  .sb-cinema .sb-in { padding-left: 13%; padding-right: 13%; }
  .sb .sb-box .sb-face { top: 14px; bottom: auto; right: 14px; height: 60px; width: 60px; border-radius: 50%; }
  .sb-cinema .sb-box .sb-face { right: 11%; }
  .sb-cinema .sb-k, .sb-board .sb-k, .sb-neon .sb-k, .sb-cinema .sb-th, .sb-board .sb-th, .sb-neon .sb-th { padding-right: 66px; }
  .sb-ticket .sb-box { flex-direction: column; }
  .sb-ticket .sb-main { padding: 20px; gap: 8px; }
  .sb-ticket .sb-stub { width: auto; border-left: 0; border-top: 3px dashed rgba(0, 0, 0, .45); flex-direction: row; flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .sb-ticket .sb-box::before, .sb-ticket .sb-box::after { display: none; }
  .sb-board .sb-tray { display: none; }
  .sb-paper .sb-in { padding: 26px 24px 24px; }
  .sb-paper .sb-stamp { top: 18px; right: 16px; transform: rotate(-12deg); width: 66px; border-width: 3px; }
  .sb-paper .sb-k { padding-right: 70px; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) { .sb-neon .sb-live { animation: sb-blink 2.4s ease-in-out infinite; } }
@keyframes sb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
