/* GLESTAIN EVENT SCHEDULE V2 / isolated from the WordPress theme */
.glst-v2 {
  --glst-ink: #262626;
  --glst-muted: #666a6d;
  --glst-line: #e4e5e6;
  --glst-pale: #ECEDEE;
  --glst-sun: #a14750;
  --glst-sat: #366a99;
  box-sizing: border-box;
  width: 100%; max-width: 1200px; margin: 24px auto 56px;
  padding: 0 12px; color: var(--glst-ink);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.65; background: transparent;
}
.glst-v2 *, .glst-v2 *::before, .glst-v2 *::after { box-sizing: border-box; }
.glst-v2 button { font: inherit; cursor: pointer; }
.glst-v2 button:focus-visible, .glst-v2 summary:focus-visible { outline: 2px solid #60666a; outline-offset: 3px; }
.glst-v2 button:disabled { opacity: .3; cursor: default; }
.glst-v2-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.glst-v2-eyebrow { letter-spacing: .17em; font-size: 11px; font-weight: 650; margin: 0 0 5px; color: #797d80; }
.glst-v2-head h2 { font-size: clamp(22px, 3vw, 29px); font-weight: 650; line-height: 1.4; letter-spacing: .02em; margin: 0 0 6px; color: #262626; border: 0; padding: 0; }
.glst-v2-subtitle { font-size: 13px; color: var(--glst-muted); margin: 0; }
.glst-v2-switch { display: flex; padding: 4px; border-radius: 12px; background: #eeeef0; flex-shrink: 0; }
.glst-v2-switch button { background: transparent !important; border: 0 !important; padding: 8px 18px !important; border-radius: 9px !important; font-size: 13px; line-height: 1.4; color: #555 !important; box-shadow: none !important; }
.glst-v2-switch button.is-active { background: #262626 !important; color: white !important; }
.glst-v2-nav { display:flex; align-items:center; justify-content: space-between; max-width: 260px; gap: 10px; margin: 0 auto 15px; }
.glst-v2-nav span { font-weight: 650; font-size: 16px; }
.glst-v2-nav button { width: 38px; height: 38px; padding:0 !important; background: #f3f4f4 !important; color: #262626 !important; border: 1px solid #e5e6e7 !important; border-radius: 10px !important; line-height: 1; font-size: 26px; box-shadow:none !important; }
.glst-v2-months { display: grid; grid-template-columns: 1fr; gap: 22px; }
.glst-v2-months-all { grid-template-columns: repeat(2, minmax(0,1fr)); }
.glst-v2-month { min-width: 0; border: 1px solid var(--glst-line); border-radius: 15px; overflow: hidden; background: #fff; }
.glst-v2-month-title { margin: 0 !important; padding: 11px 16px !important; color: #333 !important; font-size: 13px !important; line-height: 1.5 !important; font-weight: 400 !important; background: #f6f6f6; border: 0 !important; }
.glst-v2-month-title strong { font-weight: 650; font-size: 16px; margin-left: 4px; }
/* 日付セルの上に、会期を横断する連続した帯を重ねる */
.glst-v2-grid { display: block; --glst-date-head: 34px; --glst-band-height: 20px; --glst-lane-step: 23px; }
.glst-v2-weekdays, .glst-v2-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.glst-v2-weekdays { border-bottom: 1px solid var(--glst-line); }
.glst-v2-weekday { padding: 7px 2px; text-align: center; background: #fafafa; font-size: 12px; color: #777; }
.glst-v2-week { position: relative; min-width: 0; min-height: calc(var(--glst-date-head) + var(--glst-lanes) * var(--glst-lane-step) + 9px); border-bottom: 1px solid var(--glst-line); }
.glst-v2-week:last-child { border-bottom: 0; }
.glst-v2-day { grid-row: 1; min-width: 0; padding: 5px 5px 6px; border-right: 1px solid var(--glst-line); overflow: hidden; background: #fff; }
.glst-v2-day:nth-child(7) { border-right: 0; }
.glst-v2-daynum { font-size: 12px; font-weight: 600; line-height: 1; color: #4b4b4b; display: inline-flex; justify-content: center; align-items: center; width: 23px; height: 23px; border-radius: 50%; }
.glst-v2-sun .glst-v2-daynum, .glst-v2-weekday.glst-v2-sun { color: var(--glst-sun); }
.glst-v2-sat .glst-v2-daynum, .glst-v2-weekday.glst-v2-sat { color: var(--glst-sat); }
.glst-v2-today .glst-v2-daynum { background: #262626; color: #fff; }
.glst-v2-empty { background: #fafafa; }
.glst-v2-band {
  grid-row: 1; align-self: start; z-index: 2; display: flex; align-items: center;
  margin-top: calc(var(--glst-date-head) + var(--glst-lane) * var(--glst-lane-step));
  height: var(--glst-band-height); min-width: 0; max-width: 100%; overflow: hidden;
  padding: 0 7px; color: var(--glst-event-fg,#262626) !important;
  background: var(--glst-event-bg,#ECEDEE) !important; border: 1px solid rgba(38,38,38,.10);
  border-radius: 4px; box-shadow: none !important; text-decoration: none !important;
  line-height: 1.45; font-size: 11px; font-weight: 600;
}
.glst-v2-band:hover { filter: brightness(.97); }
.glst-v2-band:focus-visible { outline: 2px solid #262626; outline-offset: 1px; }
.glst-v2-band-name { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 週や月をまたいでいる帯の端は角丸にしないことで連続性を表現 */
.glst-v2-band-continued-before { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; }
.glst-v2-band-continued-after { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.glst-v2-month-dense .glst-v2-grid { --glst-date-head: 29px; --glst-band-height: 17px; --glst-lane-step: 19px; }
.glst-v2-month-dense .glst-v2-day { padding: 3px; }
.glst-v2-month-dense .glst-v2-band { font-size: 9px; padding: 0 4px; }
.glst-v2-details { margin: 31px 0 0; }
.glst-v2-section-head { display:flex; align-items:baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.glst-v2-section-head h3 { margin:0!important; font-size: 20px !important; color: #262626 !important; line-height: 1.5 !important; font-weight: 650 !important; border:0!important; }
.glst-v2-section-head span { font-size:12px; color:#888; }
.glst-v2-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: 12px; align-items:start; }
.glst-v2-item { background:#fff; border: 1px solid #e4e5e6; border-radius: 11px; min-width:0; overflow:hidden; }
.glst-v2-item summary { display: flex; align-items:center; gap: 12px; padding: 14px 16px; min-height: 60px; cursor: pointer; list-style:none; background: var(--glst-event-bg, #ECEDEE); color: var(--glst-event-fg, #262626); }
.glst-v2-item summary::-webkit-details-marker { display:none; }
.glst-v2-item-label { font-size: 14px; font-weight: 650; min-width: 0; }
.glst-v2-item-date { font-size: 12px; opacity: .87; margin-left:auto; white-space:nowrap; }
.glst-v2-chevron { width:8px; height:8px; border-bottom:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); margin-left:4px; margin-top:-4px; flex:none; }
.glst-v2-item[open] .glst-v2-chevron { transform:rotate(225deg); margin-top:4px; }
.glst-v2-item-content { padding: 9px 16px 12px; }
.glst-v2-detail-row { display:grid; grid-template-columns: 112px 1fr; gap: 12px; align-items:start; padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:12px; }
.glst-v2-detail-row:last-child { border-bottom:0; }
.glst-v2-detail-row>span { color:#777; }
.glst-v2-detail-row>strong { color:#303030; font-weight:550; overflow-wrap:anywhere; }
.glst-v2 .glst-v2-venue-link {
  display: inline-flex !important; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 13px; padding: 10px 13px; min-height: 39px;
  background: #f1f2f3 !important; border: 1px solid #dedfe1 !important; border-radius: 8px;
  color: #262626 !important; text-decoration: none !important;
  font-size: 12px; font-weight: 600; line-height: 1.5;
}
.glst-v2 .glst-v2-venue-link:hover { background: #e8e9ea !important; }
.glst-v2 .glst-v2-venue-link:focus-visible { outline: 2px solid #262626; outline-offset: 2px; }
.glst-v2 .glst-v2-venue-link > span { font-size: 15px; line-height: 1; }
.glst-v2-foot { margin:16px 0 0; font-size:12px; color:#777; }
.glst-v2-noevents, .glst-v2-loading, .glst-v2-error { background: #f8f8f8; color:#555; padding:30px 16px; text-align:center; border:1px solid #e9e9e9; border-radius:11px; }
.glst-v2-error p { margin:6px 0 12px; }
.glst-v2-error button { border:1px solid #999!important; background: #fff!important; padding:6px 18px!important; border-radius:6px!important; color:#262626!important; }
@media (max-width: 760px) {
 .glst-v2 { padding: 0 8px; margin: 16px auto 40px; }
 .glst-v2-head { flex-wrap:wrap; align-items:start; }
 .glst-v2-months-all, .glst-v2-detail-list { grid-template-columns:1fr; }
 .glst-v2-grid { --glst-date-head: 29px; --glst-band-height: 19px; --glst-lane-step: 21px; }
 .glst-v2-day { padding:3px; }
 .glst-v2-band { font-size: 9px; padding: 0 4px; }
 .glst-v2-head h2 { font-size:23px; }
}
@media (max-width: 420px) {
 .glst-v2 { padding: 0 2px; }
 .glst-v2-grid { --glst-date-head: 28px; --glst-band-height: 18px; --glst-lane-step: 20px; }
 .glst-v2-daynum { width:20px; height:20px; font-size:11px; }
 .glst-v2-band { font-size: 8px; line-height:1.4; padding: 0 3px; }
 .glst-v2-item summary { gap:8px; padding:12px; }
 .glst-v2-item-label { font-size:13px; }
 .glst-v2-item-date { font-size:11px; }
 .glst-v2-detail-row { grid-template-columns:96px 1fr; gap:6px; }
}

/* 各催事の保存アクションは詳細の開閉とは独立して常時表示 */
.glst-v2-event-card { min-width:0; background:#fff; border:1px solid #e4e5e6; border-radius:11px; overflow:hidden; }
.glst-v2-event-card .glst-v2-item { border:0; border-radius:0; }
.glst-v2 .glst-v2-calendar-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; background:#fff; border-top:1px solid #e7e7e7; }
.glst-v2-calendar-label { font-size:11px; color:#646464; margin-right:auto; }
.glst-v2 .glst-v2-cal-button { display:inline-flex !important; justify-content:center; align-items:center; min-height:34px; padding:6px 11px !important; border:1px solid #D5D6D6 !important; border-radius:6px !important; background:#F6F6F5 !important; color:#252525 !important; font-size:12px !important; font-weight:600 !important; line-height:1.3 !important; text-decoration:none !important; white-space:nowrap; box-shadow:none !important; }
.glst-v2 .glst-v2-cal-button:hover { background:#E9EAE8 !important; border-color:#BABDBA !important; }
.glst-v2 .glst-v2-cal-button:focus-visible { outline:2px solid #424442; outline-offset:2px; }
@media(max-width:420px) {
  .glst-v2 .glst-v2-calendar-actions { gap:6px; padding:9px 10px; }
  .glst-v2-calendar-label { flex-basis:100%; }
  .glst-v2 .glst-v2-cal-button { flex:1; }
}

/* v2.3.4: 店舗公式HPリンクは開いた詳細欄の中だけ表示 */
.glst-v2 .glst-v2-venue-actions {
  display:flex; align-items:center; padding:10px 12px; background:#fff;
  border-top:1px solid #e7e7e7;
}
.glst-v2 .glst-v2-venue-actions .glst-v2-venue-link {
  display:inline-flex !important; align-items:center; justify-content:space-between;
  margin:0 !important; width:100%; max-width:100%; min-height:38px;
  background:#F6F6F5 !important; color:#252525 !important;
  border:1px solid #D9DBD9 !important; text-decoration:none !important;
  font-size:12px !important; font-weight:600 !important;
}
.glst-v2 .glst-v2-venue-actions .glst-v2-venue-link:hover {
  background:#E9EAE8 !important;
}
@media (max-width:420px) {
  .glst-v2 .glst-v2-venue-actions {padding:9px 10px;}
}

/* v2.3.4: Hide venue link when its details are collapsed, regardless of theme overrides. */
.glst-v2 details.glst-v2-item:not([open]) .glst-v2-venue-actions { display:none !important; }

/* v2.3.5: venue link stays inside open details */
.glst-v2 details.glst-v2-item:not([open]) .glst-v2-venue-actions {display:none!important;}
