/**
 * doctorside Events — brand reskin
 * doctorside design tone: monochrome + teal accent (#3A7FA0),
 * fine lines, restrained motion, sharp corners (2px).
 *
 * WPCode: Code Type = CSS Snippet, Insertion = Auto Insert / Frontend.
 * 読み込み順序が plugin/public.css の後になるため !important 不要。
 */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;300;400&family=Noto+Sans+JP:wght@100;300;400;500;700&display=swap');

/* ───── Container / typography base ───── */
.dse-container {
    color: #1A2035;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ───── Buttons ───── */
.dse-button {
    border-radius: 9999px;
    padding: 0.7em 1.6em;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}
.dse-button--primary {
    background: #1A2035;
    color: #FFFFFF;
    border-color: #1A2035;
}
.dse-button--primary:hover {
    background: #2D3340;
    opacity: 0.95;
}
.dse-button--ghost {
    background: transparent;
    color: #1A2035;
    border: 1px solid rgba(26, 32, 53, 0.18);
}
.dse-button--ghost:hover {
    background: rgba(26, 32, 53, 0.04);
    border-color: rgba(26, 32, 53, 0.32);
}

/* ───── Single event ───── */
.dse-single {
    color: #1A2035;
    line-height: 1.85;
    font-family: 'Noto Sans JP', sans-serif;
}
.dse-event__header {
    border-bottom: 1px solid rgba(26, 32, 53, 0.08);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    gap: 1.2rem;
}
.dse-event__breadcrumb {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9A9CA3;
    margin-bottom: 0.7rem;
}
.dse-event__breadcrumb a {
    color: #5C6068;
    text-decoration: none;
}
.dse-event__breadcrumb a:hover {
    color: #1A2035;
    text-decoration: none;
}
.dse-event__title {
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 1.7rem;
    line-height: 1.45;
    color: #1A2035;
    letter-spacing: 0.04em;
}
.dse-event__organizer {
    color: #5C6068;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* status badge — outline pill, restrained */
.dse-event__status-badge {
    background: transparent;
    border: 1px solid rgba(26, 32, 53, 0.18);
    color: #5C6068;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 9999px;
    padding: 0.3em 0.95em;
}
.dse-event__status-badge--past {
    background: transparent;
    color: #9A9CA3;
    border-color: rgba(26, 32, 53, 0.12);
}

.dse-event__past-notice {
    background: #F4F4F6;
    border-left: 1px solid #1A2035;
    padding: 0.95rem 1.2rem;
    font-size: 0.88rem;
    color: #5C6068;
    line-height: 1.7;
}
.dse-event__past-notice strong {
    color: #1A2035;
    font-weight: 500;
}

/* section titles — replace heavy 4px border with thin underline + accent segment */
.dse-event__section-title,
.dse-archive__section-title {
    border-left: none;
    padding-left: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #1A2035;
    letter-spacing: 0.04em;
    margin-top: 2.4rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(26, 32, 53, 0.08);
    position: relative;
}
.dse-event__section-title::before,
.dse-archive__section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 32px;
    height: 1px;
    background: #3A7FA0;
}
.dse-event__subsection-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    color: #5C6068;
    margin-top: 1.2rem;
}

/* meta dl — make labels look like eyebrow tags */
.dse-event__meta {
    grid-template-columns: 8em 1fr;
    gap: 0.6rem 1.2rem;
}
.dse-event__meta dt {
    color: #9A9CA3;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.dse-event__meta dd {
    color: #1A2035;
    font-size: 0.95rem;
}
.dse-event__address {
    color: #9A9CA3;
    font-size: 0.85rem;
}
.dse-event__official-link {
    color: #3A7FA0;
}
.dse-event__official-link:hover {
    color: #2C617B;
    text-decoration: underline;
}

.dse-event__description-official {
    background: #F4F4F6;
    border-left: 1px solid rgba(26, 32, 53, 0.18);
    color: #5C6068;
    border-radius: 0;
    padding: 0.9rem 1.1rem;
}

/* technique tags — restrained outlined pills, hover to teal */
.dse-event__technique-list a {
    background: #FFFFFF;
    border: 1px solid rgba(26, 32, 53, 0.12);
    color: #1A2035;
    font-size: 0.82rem;
    padding: 0.32em 0.95em;
    border-radius: 9999px;
    font-weight: 400;
    transition: border-color 150ms ease, color 150ms ease;
}
.dse-event__technique-list a:hover {
    background: #FFFFFF;
    border-color: #3A7FA0;
    color: #3A7FA0;
}

.dse-event__speaker-list li {
    border-bottom: 1px solid rgba(26, 32, 53, 0.08);
    padding: 0.7rem 0;
}
.dse-event__speaker-name {
    color: #1A2035;
}
.dse-event__speaker-aff {
    color: #5C6068;
    font-size: 0.85rem;
}
.dse-event__speaker-url {
    color: #3A7FA0;
}

.dse-event__cta {
    margin: 2.4rem 0;
}
.dse-event__cta .dse-button {
    padding: 1em 2.6em;
    font-size: 0.98rem;
}
.dse-event__cta .dse-button--ghost {
    padding: 0.95em 2.4em;
}

.dse-event__footer {
    border-top: 1px solid rgba(26, 32, 53, 0.08);
    color: #9A9CA3;
    font-size: 0.82rem;
    padding-top: 1.2rem;
}
.dse-event__takedown-link a {
    color: #9A9CA3;
}
.dse-event__takedown-link a:hover {
    color: #1A2035;
}

/* ───── Archive ───── */
.dse-archive__title {
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    color: #1A2035;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.dse-archive__intro {
    color: #5C6068;
    font-size: 0.95rem;
    line-height: 1.85;
}
.dse-archive__filter {
    background: #F4F4F6;
    border-radius: 0;
    padding: 1.4rem;
    margin: 1.4rem 0 2.2rem;
}
.dse-archive__empty {
    color: #9A9CA3;
    padding: 3rem 1rem;
}

/* ───── Cards ───── */
.dse-list {
    gap: 16px;
}
.dse-card {
    background: #FFFFFF;
    border: 1px solid rgba(26, 32, 53, 0.08);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.dse-card:hover {
    border-color: rgba(26, 32, 53, 0.18);
    box-shadow: 0 12px 32px rgba(26, 32, 53, 0.05);
    transform: translateY(-2px);
}
.dse-card__link {
    padding: 1.1rem 1.2rem;
    gap: 1rem;
}
.dse-card__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    color: #1A2035;
    line-height: 1.5;
}
.dse-card__meta {
    color: #9A9CA3;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.dse-card__divider {
    color: rgba(26, 32, 53, 0.2);
}
.dse-card__organizer {
    color: #5C6068;
    font-size: 0.82rem;
}
.dse-card__summary {
    color: #9A9CA3;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* card past badge — outline restrained, monochrome */
.dse-card__badge {
    background: transparent;
    border: 1px solid rgba(26, 32, 53, 0.16);
    color: #9A9CA3;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.25em 0.75em;
    border-radius: 9999px;
    font-weight: 400;
}
.dse-card__badge--past {
    background: transparent;
    color: #9A9CA3;
    border-color: rgba(26, 32, 53, 0.16);
}

/* ───── Filter form ───── */
.dse-filter__label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9A9CA3;
    font-weight: 400;
}
.dse-filter select,
.dse-filter input[type="text"] {
    background: #FFFFFF;
    border: 1px solid rgba(26, 32, 53, 0.12);
    border-radius: 2px;
    padding: 0.6em 0.75em;
    font-size: 0.93rem;
    color: #1A2035;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 150ms ease;
}
.dse-filter select:focus,
.dse-filter input[type="text"]:focus {
    outline: none;
    border-color: #3A7FA0;
}

/* ───── Calendar ───── */
.dse-calendar__title {
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #1A2035;
    letter-spacing: 0.04em;
}
.dse-calendar__nav {
    color: #5C6068;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.dse-calendar__nav:hover {
    color: #3A7FA0;
}
.dse-calendar__grid th {
    background: transparent;
    border: 1px solid rgba(26, 32, 53, 0.06);
    border-bottom: 1px solid rgba(26, 32, 53, 0.18);
    color: #9A9CA3;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.7rem;
}
.dse-calendar__cell {
    border: 1px solid rgba(26, 32, 53, 0.06);
    background: #FFFFFF;
    padding: 0.5rem 0.5rem 0.4rem;
}
.dse-calendar__cell--empty {
    background: #FAFAFA;
}
.dse-calendar__cell--has-events {
    background: #FFFFFF;
    position: relative;
}
.dse-calendar__cell--has-events::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3A7FA0;
}
.dse-calendar__date {
    color: #1A2035;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
}
.dse-calendar__events a {
    color: #1A2035;
    font-size: 0.74rem;
}
.dse-calendar__events a:hover {
    color: #3A7FA0;
}

/* ───── Pagination ───── */
.dse-pagination .page-numbers {
    border: 1px solid rgba(26, 32, 53, 0.12);
    border-radius: 9999px;
    color: #1A2035;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0.45em 0.95em;
    transition: border-color 150ms ease, background 150ms ease;
}
.dse-pagination .page-numbers:hover {
    border-color: #1A2035;
    background: rgba(26, 32, 53, 0.04);
}
.dse-pagination .page-numbers.current {
    background: #1A2035;
    color: #FFFFFF;
    border-color: #1A2035;
}

/* ───── Past archive list (個別ページ下部の「過去開催履歴」) ───── */
.dse-archive__past-list li {
    border-bottom: 1px solid rgba(26, 32, 53, 0.06);
    padding: 0.65rem 0;
}
.dse-archive__past-list a {
    color: #1A2035;
    font-size: 0.92rem;
    text-decoration: none;
}
.dse-archive__past-list a:hover {
    color: #3A7FA0;
}
.dse-archive__past-date {
    color: #9A9CA3;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* ───── Mobile adjustments ───── */
@media (max-width: 600px) {
    .dse-event__title { font-size: 1.45rem; }
    .dse-archive__title { font-size: 1.55rem; }
    .dse-event__meta dt { font-size: 10px; letter-spacing: 0.12em; }
    .dse-event__section-title,
    .dse-archive__section-title { font-size: 0.95rem; margin-top: 2rem; }
    .dse-archive__filter { padding: 1.1rem; }

    /* スマホでカレンダーは元のドットインジケータ規定がある(::after) → そちらを上書き */
    .dse-calendar__cell--has-events::after {
        content: '';
        background: #3A7FA0;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        font-size: 0;
        margin-top: 4px;
    }
}

/* ==============================================================
 * Dark zones — メリハリ用ダーク背景
 * brand bg: #0D1220 / accent: #3A7FA0
 * ============================================================== */

/* ---- Archive: dark hero band (top) ---- */
.dse-archive__header {
    background: #0D1220;
    padding: 60px 40px 56px;
    margin: -1.5rem -1rem 36px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.dse-archive__header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    width: 32px;
    height: 1px;
    background: #3A7FA0;
}
.dse-archive__title {
    color: #FFFFFF;
}
.dse-archive__intro {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Archive: past list stays light (the submit CTA below it is the dark anchor) ---- */

/* ---- Single event: dark hero band (top) ---- */
.dse-event__header {
    background: #0D1220;
    padding: 50px 40px 44px;
    margin: -1.5rem -1rem 36px;
    border-bottom: none;
    align-items: center;
    color: #FFFFFF;
    gap: 1.4rem;
}
.dse-event__header .dse-event__icon img {
    filter: brightness(0) invert(1);
    opacity: 0.75;
}
.dse-event__breadcrumb {
    color: rgba(255, 255, 255, 0.4);
}
.dse-event__breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
}
.dse-event__breadcrumb a:hover {
    color: #FFFFFF;
}
.dse-event__title {
    color: #FFFFFF;
}
.dse-event__organizer {
    color: rgba(255, 255, 255, 0.6);
}
.dse-event__header .dse-event__status-badge {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.22);
}
.dse-event__header .dse-event__status-badge--past {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ---- Single event: dark CTA callout band ---- */
.dse-event__cta {
    background: #0D1220;
    padding: 52px 40px;
    margin: 48px -1rem;
}
.dse-event__cta .dse-button--primary {
    background: #FFFFFF;
    color: #1A2035;
    border-color: #FFFFFF;
}
.dse-event__cta .dse-button--primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #1A2035;
    opacity: 1;
}
.dse-event__cta .dse-button--ghost {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}
.dse-event__cta .dse-button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ---- Calendar header → dark month-nav bar ---- */
.dse-calendar__header {
    background: #0D1220;
    padding: 18px 24px;
    margin: 0;
}
.dse-calendar__title {
    color: #FFFFFF;
}
.dse-calendar__nav {
    color: rgba(255, 255, 255, 0.6);
}
.dse-calendar__nav:hover {
    color: #3A7FA0;
}

/* ---- Mobile adjustments for dark zones ---- */
@media (max-width: 600px) {
    .dse-archive__header {
        margin: -1rem -0.7rem 24px;
        padding: 40px 24px 36px;
    }
    .dse-archive__header::before {
        left: 24px;
    }
    .dse-event__header {
        margin: -1rem -0.7rem 24px;
        padding: 36px 24px 32px;
        flex-direction: row;
    }
    .dse-event__cta {
        margin: 36px -0.7rem;
        padding: 36px 24px;
    }
    .dse-calendar__header {
        padding: 14px 18px;
    }
}

/* ==============================================================
 * Dark zones — LP風のhalo gradient + 微細グリッドテクスチャ
 * 単色 #0D1220 を上書きしてLP geometric の atmosphere に寄せる
 * ============================================================== */
.dse-archive__header,
.dse-event__header,
.dse-event__cta,
.dse-calendar__header,
.dse-submit-cta {
    background-color: #0D1220;
    background-image:
        radial-gradient(ellipse 75% 110% at 78% 50%, rgba(58, 127, 160, 0.20) 0%, rgba(58, 127, 160, 0.05) 35%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    background-repeat: no-repeat, repeat, repeat;
    background-position: 0 0, 0 0, 0 0;
}

/* ==============================================================
 * Submit CTA — 主催者向け「掲載希望はこちら」リンク
 * 配置: Archive ページ末尾(フル幅) + Single ページ footer(細字)
 * 注: 本番反映には別途 PHP/JS スニペットでの注入が必要(別ファイル)
 * ============================================================== */

/* Archive bottom — full-width dark CTA anchor (gradient/halo は上の共通ルールで効いてる) */
.dse-submit-cta {
    margin: 60px -1rem -1.5rem;
    padding: 60px 40px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.dse-submit-cta__eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 18px;
}
.dse-submit-cta__title {
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 1.55rem;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin: 0 0 16px;
}
.dse-submit-cta__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 auto 30px;
    max-width: 560px;
}
.dse-submit-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #1A2035;
    padding: 0.95em 2.4em;
    border-radius: 9999px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 150ms ease, transform 150ms ease;
}
.dse-submit-cta__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Single event footer — small text link beside takedown */
.dse-event__submit-link {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
}
.dse-event__submit-link a {
    color: #5C6068;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.dse-event__submit-link a:hover {
    color: #3A7FA0;
}

/* Mobile */
@media (max-width: 600px) {
    .dse-submit-cta {
        margin: 40px -0.7rem -1rem;
        padding: 44px 24px;
    }
    .dse-submit-cta__title {
        font-size: 1.25rem;
    }
}

/* ==============================================================
 * Field tag — 旧 SVG icon を「色背景 + 白文字」の Tag pill に置換
 * 色は元のplugin準拠 (ピンク/ブルー/グリーン)
 * 検出: :has() で .dse-card__icon img[src*="..."] (本番) と
 *       .dse-card__icon svg[aria-label="..."] (preview) の両対応
 * ============================================================== */

/* 元のアイコン要素を非表示 */
.dse-card__icon { display: none; }
.dse-event__icon img,
.dse-event__icon svg { display: none; }

/* Pill の共通スタイル (card は body::before、single header は icon::before) */
.dse-card__body::before,
.dse-event__icon::before {
    display: inline-block;
    color: #FFFFFF;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 2px;
    line-height: 1;
}
.dse-card__body::before {
    padding: 0.32em 0.7em;
    font-size: 0.7rem;
    margin-bottom: 0.55rem;
}
.dse-event__icon::before {
    padding: 0.5em 1em;
    font-size: 0.85rem;
}
.dse-event__icon {
    align-self: flex-start;
    margin-top: 0.3rem;
}

/* ─ 美容皮膚科 (pink) ─ */
.dse-card:has(.dse-card__icon img[src*="beauty-dermatology"]) .dse-card__body::before,
.dse-card:has(.dse-card__icon svg[aria-label="美容皮膚科"]) .dse-card__body::before,
.dse-event__icon:has(img[src*="beauty-dermatology"])::before,
.dse-event__icon:has(svg[aria-label="美容皮膚科"])::before {
    content: "美容皮膚科";
    background: #d35080;
}

/* ─ 美容外科 (blue) ─ */
.dse-card:has(.dse-card__icon img[src*="beauty-surgery"]) .dse-card__body::before,
.dse-card:has(.dse-card__icon svg[aria-label="美容外科"]) .dse-card__body::before,
.dse-event__icon:has(img[src*="beauty-surgery"])::before,
.dse-event__icon:has(svg[aria-label="美容外科"])::before {
    content: "美容外科";
    background: #2876b9;
}

/* ─ 自費診療全般 (green) ─ */
.dse-card:has(.dse-card__icon img[src*="self-pay-general"]) .dse-card__body::before,
.dse-card:has(.dse-card__icon svg[aria-label="自費診療全般"]) .dse-card__body::before,
.dse-event__icon:has(img[src*="self-pay-general"])::before,
.dse-event__icon:has(svg[aria-label="自費診療全般"])::before {
    content: "自費診療全般";
    background: #3a8d3a;
}

/* ==============================================================
 * Full-width architecture
 * .dse-container は width 100%、各セクションが自前で max-width を持つ
 * ダーク帯はネガティブマージン不要で素直に viewport 端まで伸びる
 * ============================================================== */

/* Container reset — full width, no padding */
.dse-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Constrained light sections — max-width 1080px, centered, internal padding */
.dse-archive__highlight,
.dse-archive__filter,
.dse-archive__list,
.dse-archive__past,
.dse-pagination,
.dse-event__past-notice,
.dse-event__official,
.dse-event__summary,
.dse-event__techniques,
.dse-event__speakers,
.dse-event__footer {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Full-bleed dark sections — viewport 端まで伸びる、innerは max() で 1080px 中央寄せ */
.dse-archive__header,
.dse-event__header,
.dse-event__cta,
.dse-submit-cta,
.dse-calendar__header {
    width: 100%;
    margin: 0;
    padding-left: max(1.5rem, calc((100% - 1080px) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100% - 1080px) / 2 + 1.5rem));
    box-sizing: border-box;
}

/* Per-zone vertical spacing (paddingTop/Bottom + 隣接 margin) */
.dse-archive__header  { padding-top: 60px; padding-bottom: 56px; margin-bottom: 36px; }
.dse-event__header    { padding-top: 50px; padding-bottom: 44px; margin-bottom: 36px; }
.dse-event__cta       { padding-top: 52px; padding-bottom: 52px; margin: 48px 0; }
.dse-submit-cta       { padding-top: 60px; padding-bottom: 60px; margin: 60px 0 0; }
.dse-calendar__header { padding-top: 18px; padding-bottom: 18px; margin: 0; }

/* Mobile — smaller padding & spacing */
@media (max-width: 600px) {
    .dse-archive__highlight,
    .dse-archive__filter,
    .dse-archive__list,
    .dse-archive__past,
    .dse-pagination,
    .dse-event__past-notice,
    .dse-event__official,
    .dse-event__summary,
    .dse-event__techniques,
    .dse-event__speakers,
    .dse-event__footer,
    .dse-archive__header,
    .dse-event__header,
    .dse-event__cta,
    .dse-submit-cta,
    .dse-calendar__header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .dse-archive__header  { padding-top: 40px; padding-bottom: 36px; margin-bottom: 24px; }
    .dse-event__header    { padding-top: 36px; padding-bottom: 32px; margin-bottom: 24px; }
    .dse-event__cta       { padding-top: 36px; padding-bottom: 36px; margin: 36px 0; }
    .dse-submit-cta       { padding-top: 44px; padding-bottom: 44px; margin: 40px 0 0; }
    .dse-calendar__header { padding-top: 14px; padding-bottom: 14px; }
}

/* ==============================================================
 * Theme container override — /events/ 配下のみフルワイド化
 * GeneratePress の .site.grid-container と .site-content は既定で
 * max-width が設定されているため、ds_event 系ページに限り解除する。
 * これによりダーク帯が viewport 端まで伸びる。
 * ============================================================== */
body.post-type-archive-ds_event .site.grid-container,
body.post-type-archive-ds_event .site-content,
body.single-ds_event .site.grid-container,
body.single-ds_event .site-content,
body.tax-dse_technique .site.grid-container,
body.tax-dse_technique .site-content {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ==============================================================
 * v0.7.8 追加: promo card / promo banner / submit-link 揃え / cta 白背景
 * ============================================================== */

/* --- pinned promo card --- */
.dse-card--promo {
    border: 1px solid #1A2035;
    background: linear-gradient(180deg, rgba(58,127,160,0.04) 0%, #FFFFFF 60%);
    position: relative;
}
.dse-card--promo::before {
    content: 'PROMOTION';
    position: absolute; top: 0; left: 0;
    background: #1A2035; color: #FFFFFF;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 10px; font-weight: 300; letter-spacing: 0.2em;
    padding: 0.4em 1em; z-index: 1;
}
.dse-card--promo .dse-card__link { padding-top: 2.4rem; }
.dse-card--promo .dse-card__body::before {
    content: "doctorside";
    background: #3A7FA0;
    color: #FFFFFF;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.1em;
}
.dse-card__techniques {
    color: #5C6068;
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0.6rem 0 0;
    letter-spacing: 0.02em;
}
.dse-card--promo .dse-card__cta {
    margin: 0.9rem 0 0;
    color: #3A7FA0;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.04em;
}

/* --- promo banner (PC max 50%, SP 100%) --- */
.dse-promo-banner {
    margin: 3rem auto;
    padding: 0 1.5rem;
}
.dse-promo-banner__link {
    display: block;
    width: 100%;
    max-width: 560px;        /* = 1120 * 0.5 */
    margin: 0 auto;
    aspect-ratio: 1120 / 400;
    overflow: hidden;
    border-radius: 2px;
    transition: opacity 200ms ease, transform 200ms ease;
}
.dse-promo-banner__link:hover {
    opacity: 0.94;
    transform: translateY(-2px);
}
.dse-promo-banner__link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .dse-promo-banner__link { max-width: 100%; }
    .dse-promo-banner { margin: 2rem auto; }
}

/* --- submit-link を takedown と同じ色・サイズに(既存ルール上書き) --- */
.dse-event__submit-link {
    margin: 0;
    font-size: inherit;
}
.dse-event__submit-link a {
    color: #9A9CA3;
    text-decoration: underline;
    text-underline-offset: auto;
}
.dse-event__submit-link a:hover {
    color: #1A2035;
}

/* --- 個別ページ footer に下方向 padding --- */
.dse-event__footer {
    padding-bottom: 1.6rem;
}

/* --- 公式サイトで申し込む — ダーク帯撤去、白背景 + 標準 primary ボタン --- */
.dse-event__cta {
    background: transparent;
    background-image: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 2.4rem auto;
    max-width: 1080px;
    width: auto;
    text-align: center;
}
.dse-event__cta .dse-button--primary {
    background: #1A2035;
    color: #FFFFFF;
    border-color: #1A2035;
}
.dse-event__cta .dse-button--primary:hover {
    background: #2D3340;
    color: #FFFFFF;
    opacity: 0.95;
}
.dse-event__cta .dse-button--ghost {
    background: transparent;
    color: #1A2035;
    border-color: rgba(26, 32, 53, 0.18);
}
