/* イベントページの追加スタイル（サーバーの「公開」処理が各ページの head で読み込む：cbd-private/content-event-extras.php） */
.intro h1{line-height:1.15}
/* 関連イベント：［同じ講演者］［関連するトピック］の切り替え */
.related-switch{display:flex;flex-wrap:wrap;gap:8px 24px;border:0;margin:0;padding:0;min-width:0}
.related-switch legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.related-switch label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:600}
.related-switch input{margin:0;accent-color:#2f6fb0}
#related:has(input[value="topic"]:checked) .related-speaker,#related:has(input[value="speaker"]:checked) .related-topic{display:none}
/* 会場（オフライン開催） */
.event-venue{margin:8px 0 0;line-height:1.6}
.event-venue-label{display:inline-block;margin-right:8px;padding:0 8px;border:1px solid currentColor;border-radius:4px;font-size:.85em}
.event-venue-address{color:#4d5f6c;font-size:.875em}
.event-venue a{margin-left:4px;white-space:nowrap}
/* 複数セッション：セッションごとに「タイトル・概要・プロフィール」の固まり */
.session-entry{margin:0 0 40px;padding-bottom:0;border-bottom:0}
.session-entry:last-child{border-bottom:0;padding-bottom:0}
.session-profiles{display:grid;gap:16px;margin-top:20px}
.speaker-layout{display:block}
.session-profiles .directory-card,#profiles .directory-card,#speaker .directory-card,#speaker .speaker-bio{display:flow-root;margin:0 0 16px;padding:24px 28px;background:#efefef;border:0;border-radius:10px;box-shadow:none}
.session-profiles .directory-card>img,#profiles .directory-card>img,#speaker .directory-card>img,#speaker .speaker-bio>img{float:right;width:120px;height:120px;margin:40px 0 12px 24px;border-radius:50%;object-fit:cover}
.session-profiles .directory-card h3,#profiles .directory-card h3,#speaker .directory-card h3,#speaker .speaker-bio h3{font-size:24px;line-height:1.4;margin:0 0 16px}
.session-profiles .directory-card h3 a,#profiles .directory-card h3 a,#speaker .directory-card h3 a,#speaker .speaker-bio h3 a{color:inherit;text-decoration:none}
.speaker-reading{margin-left:6px;font-size:13px;font-weight:400;color:#5d6b75}
.speaker-affiliation{margin:0 0 12px;padding-bottom:6px;font-weight:700;font-size:15px;border-bottom:1px dotted #c9cfd4}
.session-profiles .directory-card p,#profiles .directory-card p,#speaker .directory-card p,#speaker .speaker-bio p{font-size:15px;line-height:1.8;margin:0 0 8px}
@media(max-width:600px){.session-profiles .directory-card>img,#profiles .directory-card>img,#speaker .directory-card>img,#speaker .speaker-bio>img{width:88px;height:88px;margin:0 0 8px 16px}}
/* Google カレンダーに追加（「G」） */
.gcal-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:8px;border:1px solid #c5d1da;border-radius:50%;background:#fff;color:#1a73e8;font-weight:700;font-size:15px;line-height:1;text-decoration:none;vertical-align:middle}
.gcal-button:hover,.gcal-button:focus-visible{background:#e8f0fe;border-color:#1a73e8}
/* トップページ：カバーの下の［〈イベント名〉の詳細・お申し込み↓］ */
.home-banner-detail{display:flex;margin:16px 0 0}
.home-banner-detail .btn{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;gap:24px;font-size:16px;padding:16px 24px}
.home-banner-detail .btn .detail-label{font-size:inherit;min-width:0;overflow-wrap:anywhere}
.home-banner-detail .btn .detail-arrow{flex:none}
@media(max-width:600px){.home-banner-detail .btn{width:100%;font-size:14px;padding:14px 18px}}
#speaker .speaker-bio{max-width:none}
#speaker .speaker-bio p:empty{display:none}
/* セッションカバー（セッション名の下） */
.session-cover{display:block;width:100%;height:auto;margin:8px 0 16px;border-radius:8px}
/* イベント概要：幅いっぱいに、「：」の前の語句は太字 */
main .section .prose,main .section [data-interest-info]{max-width:none}
.overview-label{font-weight:700}
/* 関連イベント：［同じ講演者／関連するトピック］と［縦型カード／横型カード］を同じ行に */
.related-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:0 0 20px}
.related-toolbar .related-view-controls{margin:0}
.related-view-slot[hidden]{display:none!important}
/* 複数セッション：セッションタイトル（えんじの帯・白抜き） */
.session-entry>h2.session-title{margin:2em 0 16px;border-bottom:none;font-size:1.5em;line-height:1.4;background-color:#993366;color:#fff;padding:10px 20px;border-radius:5px}
.session-entry:first-of-type>h2.session-title{margin-top:0}
.event-venue-name{font-size:1.2em;font-weight:700;vertical-align:middle}
.event-venue-label{vertical-align:middle}
/* タイムテーブル */
.timetable table{width:100%;border-collapse:collapse;margin:8px 0 16px}
.timetable th,.timetable td{padding:8px 12px;border-bottom:1px solid #dfe6ec;text-align:left;vertical-align:top}
.timetable th{background:#eef2f5;font-weight:700}
/* リマインダー欄の小見出し */
.reminder-sub{font-size:17px;margin:24px 0 8px}
#reminder .prose:empty{display:none}
/* セッション本文の小見出しを大きく（Markdown の ### は h5 になる） */
.session-entry>:is(h3,h4,h5,h6),.session-entry>div>:is(h3,h4,h5,h6){line-height:1.4;margin:28px 0 12px}
.session-entry>h3,.session-entry>div>h3{font-size:28px}
.session-entry>h4,.session-entry>div>h4{font-size:26px}
.session-entry>h5,.session-entry>div>h5{font-size:24px}
.session-entry>h6,.session-entry>div>h6{font-size:20px}
/* リード文（基本情報） */
.event-lead{margin:12px 0 0;font-size:17px;line-height:1.7;color:#33475a}
/* リマインダー：3カラムのカード */
.reminder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:8px}
.reminder-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dfe6ec;border-radius:10px;padding:24px}
.reminder-card .reminder-sub{margin:0 0 12px}
.reminder-card p{margin:0 0 1em;line-height:1.7}
.reminder-card p:last-child{margin-bottom:0}
.reminder-card .prose p:last-child{margin-bottom:0}
@media(max-width:900px){.reminder-grid{grid-template-columns:1fr}}
/* 関連イベント：［過去のコンテンツをすべて見る］を「同じ講演者」なら講演者名で検索した一覧へ */
#related:has(input[value="speaker"]:checked) .related-all-topic,#related:not(:has(input[value="speaker"]:checked)) .related-all-speaker{display:none}
.reminder-card-action{margin-top:auto!important;padding-top:8px}
.reminder-card-action .btn{display:flex;justify-content:space-between;align-items:center}
/* 画面下に残る購入ボタン（sticky-cta.js） */
/* 画面下の購入ボタンが出ているときだけ、フッターの中に隠れる分の余白を足す（出ていないときはフッターの下に余白を作らない） */
body.sticky-cta-shown>footer{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
.sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line,#dce4e9);box-shadow:0 -6px 18px rgba(24,43,60,.12);transform:translateY(110%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
.sticky-cta.is-visible{transform:none;visibility:visible;transition:transform .25s ease}
.sticky-cta-inner{display:flex;align-items:center;gap:12px 20px;max-width:1000px;margin:0 auto}
.sticky-cta-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;margin:0;line-height:1.4}
.sticky-cta-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:700;color:var(--ink,#182b3c)}
.sticky-cta-note{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;color:var(--muted,#5c6c78)}
.sticky-cta .sticky-cta-btn{flex:none;margin:0;gap:12px;padding:13px 20px;font-size:15px;white-space:nowrap}
.sticky-cta .sticky-cta-btn span{font-size:18px}
.sticky-cta .sticky-cta-btn:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
@media(max-width:600px){.sticky-cta{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}.sticky-cta-title{font-size:12px}.sticky-cta-note{font-size:12px}.sticky-cta .sticky-cta-btn{padding:12px 14px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.sticky-cta,.sticky-cta.is-visible{transition:none}}
@media print{.sticky-cta{display:none}body.sticky-cta-shown>footer{padding-bottom:0}}
/* リマインダー：「気になる♥」のボタンをほかのカードのボタンと同じ位置・幅に */
.reminder-card .prose{display:flex;flex-direction:column;flex:1}
.reminder-card .prose>p:has(> .btn){margin-top:auto;padding-top:8px;margin-bottom:0}
.reminder-card .prose>p>.btn{display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box}
/* 関連イベント：「同じシリーズ」 */
#related:has(input[value="series"]:checked) :is(.related-speaker,.related-topic,.related-all-topic),#related:not(:has(input[value="series"]:checked)) :is(.related-series,.related-all-series){display:none}
/* 開催後のページの［アーカイブを購入］ */
.archive-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin:20px 0 0;padding:18px 24px;border:1px solid #dfe6ec;border-left:4px solid #a12b65;border-radius:8px;background:#fff}
.archive-cta p{margin:0;line-height:1.7}
.archive-cta .btn{flex:none}
.timetable-note{margin:-8px 0 16px;font-size:.9em;color:#5f6b75}
.ticket.is-purchased{position:relative;overflow:hidden}
.ticket-purchased{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;background:rgba(0,0,0,.7);color:#fff;text-align:center;border-radius:inherit}
.ticket .ticket-purchased-label{margin:0;padding:6px 20px;border:2px solid #fff;border-radius:4px;font-size:22px;font-weight:700;letter-spacing:.1em;color:#fff}
.ticket .ticket-purchased a{color:#fff;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.ticket-purchased a:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
/* 長い講演者プロフィールの折りたたみ（profile-collapse.js） */
.profile-collapsed{position:relative;max-height:360px;overflow:hidden;margin-bottom:0!important}
.profile-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:96px;background:linear-gradient(rgba(239,239,239,0),#efefef);pointer-events:none}
.profile-more{display:block;justify-self:start;width:auto;margin:-4px 0 16px 28px;text-align:left;padding:6px 0;background:none;border:0;color:var(--blue,#0072b1);font:inherit;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.profile-more:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
/* トップページ：次のイベントのカバー画像に「次回開催」 */
.home-next-cover{position:relative;display:block}
.home-next-badge{position:absolute;top:16px;left:16px;z-index:1;padding:8px 16px;background:#993366;color:#fff;font-size:16px;font-weight:700;line-height:1.4;letter-spacing:.08em;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.25);pointer-events:none}
@media(max-width:600px){.home-next-badge{top:10px;left:10px;padding:5px 10px;font-size:13px}}
/* リマインダー欄のカードのボタンの高さをそろえる（気になる♥は button 要素なので低くなっていた） */
.reminder-card .btn{min-height:64px;box-sizing:border-box;margin:0}
/* 講演者プロフィールの見出しと最初のカードの間 */
#profiles>h2,.archive-profiles>h2{margin-bottom:24px}
/* イベントページの冒頭：タイトルとボタン列を上揃えに */
.intro{align-items:start}
/* トップ：バナー下のボタン「次回開催：〈イベント名〉の詳細・お申し込み」を1行に（イベント名は途中で切る） */
.home-banner-detail .btn .detail-label.detail-oneline{display:flex;min-width:0;white-space:nowrap;overflow-wrap:normal}
.detail-oneline .detail-next,.detail-oneline .detail-tail{flex:none}
.detail-oneline .detail-title{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* 複数セッション：イベント名の帯＋セッションの一覧、各セッションは大きな見出し（以前のページと同じ形） */
.session-index{margin:0 0 8px;padding-left:1.4em}
.session-index li{margin:8px 0;line-height:1.6}
.session-index a{color:inherit;text-decoration:none}
.session-index a:hover{text-decoration:underline}
/* ページ内リンクの飛び先が、上に固定した目次に隠れないようにする（--toc-offset は event-state.js が目次の高さから入れる） */
main [id]{scroll-margin-top:calc(var(--toc-offset,130px) + 12px)}
.session-entry>h3.session-heading{font-size:1.75em;line-height:1.45;margin:2.2em 0 16px;scroll-margin-top:var(--toc-offset,24px)}
/* イベントページの説明・セッションは幅いっぱいに（以前のページの 800px の制限を外す） */
.archive-description,.archive-description p,#sessions.prose,#sessions .prose{max-width:none}
/* 複数セッション：広い画面では右側にセッションの一覧を固定して出す */
.session-side-nav{display:none}
@media(min-width:1100px){.section:has(>.session-side-nav){display:grid;grid-template-columns:minmax(0,1fr) 220px;column-gap:32px;align-items:start}
.section:has(>.session-side-nav)>*{grid-column:1}
.section>.session-side-nav{display:block;grid-column:2;grid-row:2/span 100;position:sticky;top:calc(var(--toc-offset,24px) + 8px);max-height:calc(100vh - 120px);overflow:auto;padding:14px 16px;background:#fff;border:1px solid #dfe6ec;border-radius:10px;font-size:13px;line-height:1.5}
.session-side-nav-head{margin:0 0 8px;font-weight:700;color:#993366;letter-spacing:.04em}
.session-side-nav ol{margin:0;padding-left:1.4em}
.session-side-nav li{margin:6px 0}
.session-side-nav a{color:inherit;text-decoration:none}
.session-side-nav a:hover{text-decoration:underline}}
/* 主催の欄の一文 */
.organizers-lead{margin:-4px 0 20px}
/* チケット欄の最後の「ご案内」へのリンク */
.guide-link{margin:20px 0 0;font-size:14px}
