/* ============================================================
   ds-top.css — doctorside トップページ / ショートコード [ds_top]
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;600&family=Noto+Sans+JP:wght@300;400;500;700&family=JetBrains+Mono:wght@300;400&display=swap');

:root {
  --ds-bg-page: #EBEBED;
  --ds-bg-alt:  #F3F4F5;
  --ds-card-bg: #FFFFFF;
  --ds-text-1:  #1A2035;
  --ds-text-2:  #565E74;
  --ds-text-3:  #8B93A6;
  --ds-label:   #8B93A6;
  --ds-accent:  #3A7FA0;
  --ds-divider: rgba(26,32,53,0.08);

  --ds-font-display: 'Josefin Sans', sans-serif;
  --ds-font-body:    'Noto Sans JP', sans-serif;
  --ds-font-mono:    'JetBrains Mono', monospace;

  --ds-shadow:     0 2px 16px rgba(26,32,53,0.06), 0 1px 2px rgba(26,32,53,0.04);
  --ds-shadow-hov: 0 16px 40px rgba(26,32,53,0.12), 0 2px 6px rgba(26,32,53,0.06);
}

/* ── Layout primitives ─────────────────────────────────────── */
.ds-container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.ds-top-section { padding: 88px 0; }
.ds-bg-page { background: var(--ds-bg-page); }
.ds-bg-alt  { background: var(--ds-bg-alt); }

.ds-grid { display: grid; gap: 32px; }
.ds-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Section header ────────────────────────────────────────── */
.ds-section-header { margin-bottom: 40px; }
.ds-section-kicker {
  font-family: var(--ds-font-display);
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ds-label); margin-bottom: 10px;
}
.ds-section-header h2 {
  font-family: var(--ds-font-body);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 500; color: var(--ds-text-1);
  line-height: 1.4; margin: 0;
}

/* ── Card ──────────────────────────────────────────────────── */
.ds-card {
  background: var(--ds-card-bg);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--ds-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.ds-card a { display: block !important; width: 100% !important; color: inherit; text-decoration: none; }
.ds-card:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-hov); }

.ds-card-thumb {
  aspect-ratio: 16 / 9;
  background: #DADEE5;
  overflow: hidden;
}
.ds-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.ds-card-body { padding: 18px 20px 22px; }
.ds-card .ds-card-body .ds-card-title {
  display: block !important; width: 100% !important;
  font-family: var(--ds-font-body);
  font-size: 14px; font-weight: 500;
  color: var(--ds-text-1);
  line-height: 1.65; margin: 0 0 8px;
}
.ds-card-meta {
  font-family: var(--ds-font-mono);
  font-size: 11px; color: var(--ds-text-3);
  letter-spacing: 0.06em;
}

/* ── More button (pill) ────────────────────────────────────── */
.ds-more-wrap { text-align: center; margin-top: 40px; }
.ds-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ds-font-body);
  font-size: 13px; font-weight: 500;
  color: var(--ds-text-1); background: #FFFFFF;
  padding: 12px 32px; border-radius: 9999px;
  box-shadow: var(--ds-shadow);
  text-decoration: none;
  transition: all 150ms ease;
}
.ds-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-hov);
  color: var(--ds-text-1);
}

/* ── Hero ──────────────────────────────────────────────────── */
.ds-hero {
  background: #1A2035;
  min-height: 560px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 40px 88px;
  position: relative; overflow: hidden;
}
.ds-hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(30px); pointer-events: none;
  will-change: transform;
  animation: ds-drift 18s ease-in-out infinite;
}
.ds-hero-blob-1 {
  bottom: -120px; right: -80px;
  width: 640px; height: 540px;
  background: radial-gradient(circle, rgba(58,127,160,0.25) 0%, transparent 65%);
}
.ds-hero-blob-2 {
  top: 5%; left: 35%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(58,127,160,0.18) 0%, transparent 70%);
  animation-duration: 22s; animation-delay: -6s;
}
.ds-hero-blob-3 {
  top: 40%; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(120,160,200,0.14) 0%, transparent 70%);
  animation-duration: 26s; animation-delay: -12s;
  filter: blur(40px);
}
@keyframes ds-drift {
  0%,100% { transform: translate(0,0); }
  25%     { transform: translate(60px,-40px); }
  50%     { transform: translate(-30px,50px); }
  75%     { transform: translate(-70px,-30px); }
}
.ds-hero-grid {
  position: absolute; inset: 0;
  background-image:
    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: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.ds-hero-inner {
  max-width: 860px; margin: 0 auto;
  position: relative; text-align: center;
}
.ds-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ds-font-body);
  font-size: 11px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap; margin-bottom: 28px;
}
.ds-hero-eyebrow-line {
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.35);
  display: inline-block;
}
.ds-hero-title {
  font-family: var(--ds-font-body);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.45;
  margin: 0 0 22px;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.ds-hero-sub {
  font-family: var(--ds-font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9; margin: 0 0 36px;
}
.ds-hero-cta-wrap { display: flex; justify-content: center; }
.ds-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ds-font-body);
  font-size: 13px; font-weight: 500;
  color: #1A2035; background: #FFFFFF;
  padding: 13px 28px; border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: all 150ms ease;
}
.ds-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  color: #1A2035;
}

/* ── Handson banner ────────────────────────────────────────── */
.ds-handson-wrap { padding-top: 0; }
.ds-handson {
  background: #1A2035;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(26,32,53,0.18);
  position: relative;
  padding: 64px 56px;
}
.ds-handson-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.ds-handson-blob-1 {
  top: -120px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(58,127,160,0.27) 0%, transparent 65%);
  filter: blur(30px);
}
.ds-handson-blob-2 {
  bottom: -100px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(120,160,200,0.18) 0%, transparent 65%);
  filter: blur(40px);
}
.ds-handson-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}
.ds-handson-inner { position: relative; z-index: 1; max-width: 760px; }
.ds-handson-kicker {
  font-family: var(--ds-font-display);
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.ds-handson-title {
  font-family: var(--ds-font-body);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500; color: #FFFFFF;
  line-height: 1.5; margin: 0 0 20px;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}
.ds-handson-text {
  font-family: var(--ds-font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.95; margin: 0 0 32px;
  max-width: 640px;
}
.ds-handson-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ds-font-body);
  font-size: 13px; font-weight: 500;
  color: #1A2035; background: #FFFFFF;
  padding: 13px 28px; border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: all 150ms ease;
}
.ds-handson-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  color: #1A2035;
}

.ds-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ds-container   { padding: 0 20px; }
  .ds-top-section { padding: 56px 0; }
  .ds-grid-2      { gap: 14px; }
  .ds-section-header { margin-bottom: 28px; }
  .ds-handson     { padding: 48px 28px; }
  .ds-hero        { padding: 56px 20px 72px; min-height: 460px; }
}
@media (max-width: 520px) {
  .ds-card .ds-card-body .ds-card-title { display: block !important; width: 100% !important; font-size: 12px; line-height: 1.55; }
  .ds-card-meta   { font-size: 10px; }
  .ds-card-body   { padding: 14px 14px 16px; }
  .ds-more-btn    { font-size: 12px; padding: 11px 24px; }
  .ds-hero-cta    { font-size: 12px; padding: 11px 22px; }
  .ds-hero-title  { font-size: 22px; }
  .ds-hero-eyebrow { font-size: 10px; letter-spacing: 0.1em; }
}

/* ============================================================
 * トップページ: イベント・セミナーセクションのカード
 * ============================================================ */
.ds-events-lead {
    color: #5C6068;
    font-size: 0.92rem;
    line-height: 1.85;
    margin: 0 auto 0.5rem;
    text-align: center;
    max-width: 640px;
}
.ds-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 1.5rem 0 0;
}
@media (max-width: 768px) {
    .ds-events-grid { grid-template-columns: 1fr; }
}
.ds-event-mini {
    background: #FFFFFF;
    border: 1px solid rgba(26,32,53,0.08);
    border-radius: 2px;
    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);
    overflow: hidden;
}
.ds-event-mini:hover {
    border-color: rgba(26,32,53,0.18);
    box-shadow: 0 12px 32px rgba(26,32,53,0.05);
    transform: translateY(-2px);
}
.ds-event-mini a {
    display: block;
    padding: 1.2rem 1.3rem;
    color: inherit;
    text-decoration: none;
}
.ds-event-mini__field {
    display: inline-block;
    padding: 0.3em 0.75em;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #FFF;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-radius: 2px;
    line-height: 1;
}
.ds-event-mini__field--beauty-dermatology { background: #d35080; }
.ds-event-mini__field--beauty-surgery     { background: #2876b9; }
.ds-event-mini__field--aesthetic-face     { background: #2876b9; }
.ds-event-mini__field--self-pay-general   { background: #3a8d3a; }
.ds-event-mini__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    color: #1A2035;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.ds-event-mini__meta {
    color: #5C6068;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.7;
}
.ds-event-mini__date {
    font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
    color: #1A2035;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-right: 0.6em;
}
.ds-event-mini__venue {
    color: #9A9CA3;
}

/* ============================================================
 * v0.7.8 用パッチ(/events/ ページ向け)
 * ============================================================ */

/* --- 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;
    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; }

/* --- 公式サイトで申し込む — ダーク帯撤去、白背景に --- */
.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);
}
