/* hero.css — 背景画像 + タイトルオーバーレイデザイン */

.hero-bg{
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fafafa; /* fallback */
  position: relative;
  color: #ffffff; /* テキストは白 */
  padding: 56px 16px; /* 上下余白：必要に応じて調整 */
  box-sizing: border-box;
  overflow: hidden;
}

/* 暗いオーバーレイで文字を読みやすくする */
.hero-bg .hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.36)); /* 調整可 */
  pointer-events: none;
}

/* 内部コンテンツ（上に重ねる） */
.hero-content{
  position: relative; /* overlay の上に出す */
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 12px;
  padding-top: 60px;
}

/* 上部：主催・開催方式 */
.hero-top-row{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
}
.host-badge {
  background: #000000;      /* 黒 */
  color: #ffffff;           /* 白文字 */
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: none;
}
/* 開催方式バッジ（基本スタイル） */
.format-badge {
  background: rgba(255,255,255,0.08); /* 既定の淡背景（必要なら残す） */
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color:#fff;               /* 白文字で統一 */
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* ハイブリッド開催：オレンジ背景に白文字 */
.format-badge.hybrid {
  background: #FF8A00;
  box-shadow: 0 6px 18px rgba(255,138,0,0.12);
}

/* On-site（リアル／会場）: グリーン */
.format-badge.on-site {
  background: #16A34A;
  box-shadow:0 6px 18px rgba(22,163,74,0.12);
}

/* Live（オンライン）: ブルー */
.format-badge.live {
  background: #2563EB;
  box-shadow:0 6px 18px rgba(37,99,235,0.12);
}

.hero-title-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* タイトル：白・大きめ */
.hero-title{
  margin:0;
  color:#ffffff;
  font-weight:800;
  line-height:1.08;
  font-size: clamp(28px, 5vw, 48px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.45); /* さらに読みやすく */
  word-break: break-word;
}

/* サブタイトルスタイル */
.hero-subtitle{
  margin:0;
  color:#ffffff;
  font-size: clamp(16px, 2.6vw, 30px);
  line-height:1.25;
  font-weight:600;
  opacity:0.95;
}

/* メタ（日時・会場）を2段で表示 */
.hero-meta{
  display:flex;
  flex-direction:column;
  gap:8px;
  color: rgba(255,255,255,0.95);
  font-weight:700;
}
.hero-meta-line{
  font-size: clamp(16px, 2.6vw, 20px); /* 小〜大画面で調整、最大20px */
  line-height:1.3;
}
.hero-meta-line a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.hero-meta-line a:visited {
  color: #ffffff;
}

.share-row{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.share-btn{
  background: rgba(255,255,255,0.12);
  color:#fff;
  border:1px solid rgba(255,255,255,0.18);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.share-btn:hover{
  background: rgba(255,255,255,0.18);

/* ボタンの白バージョン（outline） */
.btn-white{
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding:10px 16px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
}

/* 主要CTA（既存の .btn.primary を上書きしないように） */
.hero-apply{
  background: #ffffff;
  color: var(--primary);
  padding: 10px 16px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  box-shadow: 0 8px 26px rgba(0,72,135,0.12);
}

/* レスポンシブ */
@media (max-width: 960px){
  .hero-bg{padding:44px 12px}
  .hero-title{font-size: clamp(24px, 6.5vw, 40px)}
  .hero-content {
    padding-top: 100px;
  }
}
@media (max-width: 680px){
  .hero-bg{padding:28px 12px}
  .hero-content{padding:12px 8px}
  .hero-title-wrap{padding: 0 8px; gap:4px; max-width:100%;}
  .hero-title{font-size: clamp(20px, 8.5vw, 30px)}
  .btn-white{width:100%; text-align:center}
  .hero-top-row{gap:8px}
  .hero-meta-line{font-size:16px}
  .hero-subtitle{font-size:14px}
  .hero-apply{width:100%;text-align:center}
  .btn-outline{width:100%;text-align:center}
  .share-row{justify-content:flex-start}
  .share-btn{padding:7px 9px;font-size:12px}
  .host-badge, .format-badge {
    padding: 5px 10px;
    font-size: 12px;
  }
}