/* サカイタイムズ イベントカレンダー（プラグイン版） */
.sth-event-calendar-intro{margin:0 0 14px}
.sth-event-calendar-intro h1{margin:0 0 6px;font-size:30px;line-height:1.35}
.sth-event-calendar-intro p{margin:0;color:#575757;line-height:1.7}
.stc-preview-note{margin-top:8px!important;padding:6px 10px;border-radius:6px;background:#fff4d6;color:#7a5600!important;font-size:13px}
.sth-event-calendar-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:28px;padding-top:16px;border-top:1px solid #e6e6e6}
.sth-event-calendar-links a{color:#0066cc;text-decoration:underline;text-underline-offset:3px}

.stc-page .sth-event-calendar-intro,.stc-page .stc,.stc-page .sth-event-calendar-links{max-width:980px;margin-left:auto;margin-right:auto}
.stc{--stc-ink:#202629;--stc-sub:#5f6873;--stc-line:#e6e9ed;--stc-yellow:#f7bb5d;--stc-yellow-d:#e3a243;--stc-green:#245a35;--stc-red:#c0392b;color:var(--stc-ink)}
.stc *{box-sizing:border-box}

/* 表示切替 */
.stc-modes{margin:0 0 12px}
.stc-weekend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;min-height:72px;padding:12px 16px;border:0;border-radius:14px;background:var(--stc-yellow);color:var(--stc-ink);cursor:pointer;font:inherit;box-shadow:0 2px 3px rgba(20,30,40,.10),0 8px 18px rgba(20,30,40,.14);transition:transform .15s ease,box-shadow .15s ease,background .15s ease;-webkit-tap-highlight-color:transparent}
.stc-weekend:hover{transform:translateY(-1px)}
.stc-weekend:active{transform:translateY(1px);box-shadow:0 1px 2px rgba(20,30,40,.12)}
.stc-weekend[aria-pressed=true]{background:var(--stc-ink);color:#fff}
.stc-weekend__label{font-size:21px;font-weight:800;letter-spacing:.04em;line-height:1.3}
.stc-weekend__label::before{content:"";display:inline-block;width:20px;height:20px;margin:0 8px -3px 0;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center/contain no-repeat}
.stc-weekend__sub{font-size:13px;font-weight:600;opacity:.85}
.stc-subtabs{display:flex;gap:8px;margin-top:10px}
.stc-subtabs button{flex:1 1 0;min-height:42px;border:1px solid #cfd5db;border-radius:999px;background:#fff;color:var(--stc-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.stc-subtabs button[aria-pressed=true]{background:var(--stc-ink);border-color:var(--stc-ink);color:#fff}

/* 絞り込み */
.stc-filter{margin:0 0 18px;border:1px solid var(--stc-line);border-radius:10px;background:#f7f9fb}
.stc-filter summary{padding:10px 14px;font-size:14px;font-weight:700;cursor:pointer;list-style:none}
.stc-filter summary::-webkit-details-marker{display:none}
.stc-filter summary::after{content:"＋";float:right;color:var(--stc-sub)}
.stc-filter[open] summary::after{content:"－"}
.stc-filter summary span{margin-left:8px;color:var(--stc-red);font-size:12px}
.stc-filter__body{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:0 14px 14px}
.stc-filter__body label{display:flex;align-items:center;gap:6px;font-size:14px}
.stc-filter__body select{min-height:38px;padding:4px 8px;border:1px solid #cfd5db;border-radius:8px;background:#fff;font:inherit;font-size:14px;max-width:100%}
.stc-reset{border:0;background:none;color:#0066cc;text-decoration:underline;font:inherit;font-size:14px;cursor:pointer}

/* 見出し */
.stc-section{margin:0 0 34px}
.stc-h2{margin:0 0 6px;font-size:22px;line-height:1.4}
.stc-h2 span{font-size:15px;color:var(--stc-sub);font-weight:600}
.stc-lead{margin:0 0 14px;color:var(--stc-sub);font-size:14px}
.stc-day{position:relative;margin:24px 0 14px;padding-left:12px;font-size:19px;line-height:1.4}
.stc-day::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:5px;border-radius:3px;background:var(--stc-yellow)}
.stc-period>summary{list-style:none;cursor:pointer;padding:12px 14px;border:1px solid var(--stc-line);border-radius:10px;background:#f7f9fb;margin-bottom:16px}
.stc-period>summary::-webkit-details-marker{display:none}
.stc-period>summary .stc-h2{margin:0;font-size:17px;display:inline}
.stc-period>summary::after{content:"開く";float:right;font-size:13px;font-weight:700;color:#0066cc;line-height:1.9}
.stc-period[open]>summary::after{content:"閉じる"}
.stc-empty{padding:18px;border-radius:10px;background:#f7f9fb;color:var(--stc-sub);line-height:1.8}
.stc-few{margin:0 0 16px;padding:10px 14px;border-left:4px solid var(--stc-yellow);background:#fffaf0;font-size:14px;line-height:1.7}
.stc-note{margin:8px 0 0;color:var(--stc-sub);font-size:12px;line-height:1.7}

/* 週末：日付タブ */
.stc-weekhead{margin:0 0 10px}
.stc-weekhead h2{margin:0;font-size:22px;line-height:1.4}
.stc-weekhead p{margin:2px 0 0;color:var(--stc-sub);font-size:14px}
.stc-daytabs{position:sticky;top:var(--stc-sticky-top,0px);z-index:5;display:flex;gap:6px;margin:0 -4px 6px;padding:8px 4px;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow-x:auto}
.stc-daytabs a{flex:1 0 auto;padding:8px 12px;border-radius:999px;background:#eef1f4;color:var(--stc-ink);font-size:13px;font-weight:700;text-align:center;text-decoration:none;white-space:nowrap}
.stc-daytabs a b{margin-left:4px;font-size:12px;color:var(--stc-sub)}

/* カード（記事のまとめカードと同じ見た目：見出し全幅＋画像回り込み、立体の影） */
.stc-card{display:flow-root;position:relative;margin:0 0 30px;padding:12px 16px 14px;border:1px solid #e6e9ed;border-radius:12px;background:#fff;box-shadow:0 2px 3px rgba(20,30,40,.08),0 8px 16px rgba(20,30,40,.12),0 18px 36px rgba(20,30,40,.12)}
.stc-head{margin:0 0 8px}
.stc-date{margin:0 0 3px;color:var(--stc-sub);font-size:12.5px;font-weight:700;line-height:1.45}
.stc-title{margin:0;font-size:17px;line-height:1.45;font-weight:700}
.stc-title a{color:inherit;text-decoration:none}
.stc-title a:hover{text-decoration:underline}
.stc-badges{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 0}
.stc-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#eef1f4;color:#3a434a;font-size:11.5px;font-weight:700;line-height:1.6}
.stc-badge--free{background:#e3f3e8;color:#1e6b35}
.stc-badge--stop{background:#fde8e6;color:var(--stc-red)}
.stc-media{float:left;width:240px;margin:4px 16px 6px 0;line-height:0}
.stc-media img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;object-position:left top;border-radius:4px}
.stc-body{font-size:14px;line-height:1.65}
.stc-deadline{display:inline-block;margin:0 0 6px;padding:3px 9px;border-radius:6px;background:#fff4e5;color:#8a4b00;font-size:13px;font-weight:700}
.stc-deadline.is-soon{background:#fde8e6;color:var(--stc-red)}
.stc-deadline b{margin-left:6px;padding:0 6px;border-radius:4px;background:var(--stc-red);color:#fff;font-size:12px}
.stc-info{margin:0 0 6px;padding:0;list-style:none}
.stc-info li{margin:0 0 2px}
.stc-info li span{display:inline-block;margin-right:6px;padding:0 6px;border-radius:4px;background:#f1f3f5;color:var(--stc-sub);font-size:11.5px;font-weight:700}
.stc-short{margin:0 0 8px;color:#30363b}
.stc-links{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.stc-link{display:inline-flex;align-items:center;min-height:34px;padding:4px 12px;border:1px solid #cfd5db;border-radius:8px;color:var(--stc-ink);font-size:13px;font-weight:700;text-decoration:none}
.stc-link--main{background:var(--stc-yellow);border-color:var(--stc-yellow-d)}
.stc-card--period .stc-media{width:180px}

/* 視覚効果：カードが順にふわっと出る */
.stc-card.is-in{animation:stcIn .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
@keyframes stcIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.stc-card.is-in{animation:none}.stc-weekend{transition:none}}

@media (max-width:640px){
  .sth-event-calendar-intro h1{font-size:24px}
  .sth-event-calendar-links{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
  .stc-card{padding:11px 12px 12px;margin-bottom:26px}
  .stc-title{font-size:16px}
  .stc-media,.stc-card--period .stc-media{width:42%;margin:3px 12px 4px 0}
  .stc-media img{max-height:230px}
  .stc-body{font-size:13.5px;line-height:1.6}
  .stc-h2{font-size:20px}
  .stc-day{font-size:17px}
}
