 <style>
       /* --- 1. 基本・リセット（サイト全体に影響しないようエリア限定に変更） --- */
#jsai2026-custom-page { color: #333; line-height: 1.8; background: #fff; }

/* --- 2. 動画ヒーローエリア--- */
#jsai2026-custom-page .hero-section {
    position: relative;
    width: 100%;
    height: 480px; /* PCでの高さ */
    background: #000;
    overflow: hidden;
}
#jsai2026-custom-page .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 隙間なく埋める */
}
#jsai2026-custom-page .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 10;
}
#jsai2026-custom-page .hero-sub { font-size: 24px; font-weight: bold; margin: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#jsai2026-custom-page .hero-date { font-size: 18px; margin: 10px 0 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#jsai2026-custom-page .hero-main { font-size: 42px; font-weight: bold; margin: 0; letter-spacing: 0.15em; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
#jsai2026-custom-page .hero-main2 {
  font-size: 130px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.15em;
  
  /* --- 白抜きの設定 --- */
  color: transparent;                /* 文字の中身を透明にする */
  -webkit-text-stroke: 1.5px #40E0D0;  /* 縁取りの太さと色を指定 */-webkit-text-stroke: 1.5px #40E0D0 !important;
  
  /* 影（text-shadow）はお好みで調整してください。
     白抜きの場合は、少し弱めるか、無しにするとスッキリ見えます */
  text-shadow: none; 
}

/* --- 3. メインコンテンツエリア --- */
#jsai2026-custom-page .container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
#jsai2026-custom-page .section { margin-bottom: 70px; }

#jsai2026-custom-page h2.title { font-size: 28px; font-weight: bold; border-bottom: 3px solid #004494; padding-bottom: 10px; margin-bottom: 30px; color: #004494; }
#jsai2026-custom-page .intro-text { font-size: 16px; text-align: justify; margin-bottom: 45px; }

/* --- 4. 出展概要テーブル --- */
#jsai2026-custom-page .info-table { border-top: 2px solid #eee; }
#jsai2026-custom-page .info-row { display: flex; border-bottom: 1px solid #eee; padding: 22px 0; align-items: center; }
#jsai2026-custom-page .info-label { width: 220px; background: #004494; color: #fff; padding: 10px 15px; font-weight: bold; text-align: center; margin-right: 40px; border-radius: 4px; font-size: 15px; }
#jsai2026-custom-page .info-value { flex: 1; font-size: 16px; font-weight: bold; }



/* --- 6. SNSセクション --- */
#jsai2026-custom-page .sns-section { text-align: center; padding: 60px 0; background: #fff; margin-top: 40px; }
#jsai2026-custom-page .x-card {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 35px 50px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#jsai2026-custom-page .x-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); opacity: 0.9; }

#jsai2026-custom-page .x-image-link {
    display: inline-block;
    max-width: 800px;
    width: 90%;      
    transition: 0.3s;
    line-height: 0;   
}
#jsai2026-custom-page .x-image-link:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

/* --- 7. スマホレスポンシブ --- */
@media (max-width: 768px) {
    #jsai2026-custom-page .hero-section { height: 320px; }
    #jsai2026-custom-page .hero-sub { font-size: 16px; }
    #jsai2026-custom-page .hero-date { font-size: 14px; }
    #jsai2026-custom-page .hero-main { font-size: 20px; }
    #jsai2026-custom-page .hero-main2 { font-size: 40px; }
    #jsai2026-custom-page .container { margin: 40px auto; }
    #jsai2026-custom-page .info-row { flex-direction: column; align-items: flex-start; }
    #jsai2026-custom-page .info-label { width: 100%; margin-bottom: 12px; box-sizing: border-box; }
    #jsai2026-custom-page .info-value { font-size: 15px; padding-left: 5px; }
    #jsai2026-custom-page h2.title { font-size: 22px; }
    #jsai2026-custom-page .anniversary-box { padding: 30px 20px; }
}


#jsai2026-custom-page .x-image-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* アスク様リンクの装飾 */
#jsai2026-custom-page .ask-link {
    color: #004494;
    text-decoration: underline;
    font-weight: bold;
    transition: 0.3s;
}

#jsai2026-custom-page .ask-link:hover {
    color: #0072bc;
    text-decoration: none;
}

/* SNSセクション全体の余白 */
#jsai2026-custom-page .sns-section {
    text-align: center;
    padding: 60px 0;
    background: #fff;
}

/* 追加したメッセージのスタイル */
#jsai2026-custom-page .sns-lead {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

/* 小見出し：大会概要のスタイル */
#jsai2026-custom-page .info-head {
    font-size: 19px;
    font-weight: bold;
    color: #004494 !important;
    margin: 0 0 20px 5px;
    letter-spacing: 0.05em;
}

/* 地図エリアの調整 */
#jsai2026-custom-page .map-row {
    align-items: flex-start !important;
}

#jsai2026-custom-page .map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 0;
}

/* 展示内容予告枠のスタイル（前回の追加分も統合） */
#jsai2026-custom-page .coming-soon-box {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-left: 5px solid #004494;
    border-radius: 4px;
}
#jsai2026-custom-page .coming-soon-title {
    font-size: 20px;
    font-weight: bold;
    color: #004494;
    margin: 0 0 15px 0;
}
#jsai2026-custom-page .coming-soon-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#jsai2026-custom-page .coming-soon-text {
    font-size: 16px;
    margin: 0;
    color: #555;
}
#jsai2026-custom-page .coming-soon-badge {
    background: #e6e6e6;
    color: #888;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* --- スマホ用調整 --- */
@media (max-width: 768px) {
    #jsai2026-custom-page .sns-lead {
        font-size: 15px;
        padding: 0 20px;
    }
    #jsai2026-custom-page .info-head {
        font-size: 17px;
        margin-bottom: 15px;
    }
    #jsai2026-custom-page .map-container iframe {
        height: 200px;
    }
    #jsai2026-custom-page .coming-soon-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

#jsai2026-custom-page {
    height: auto !important;     /* 高さを内容に合わせる */
    overflow: visible !important; /* はみ出しても表示する */
    display: block !important;    /* レイアウト崩れを防ぐ */
}

/* Xのセクション全体の設定 */
/* Xのセクション：高さをしっかり確保し、フッターより上に設定 */
.sns-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 100px 0 !important;      /* 上下の余白をさらに増やしました */
    margin-bottom: 0 !important;      /* 下の余白は0に */
    
    position: relative !important;
    z-index: 999 !important;         /* フッターより大きな数字に */
    background: white !important;
    clear: both !important;
}

/* ⚠️ フッター：無理やり一番下に配置し、重なり順を一番下にします */
footer, 
.site-footer, 
#footer,
.new-footer { /* get_footer('new') を考慮 */
    position: relative !important;
    z-index: 1 !important;           /* Xのセクションより小さい数字に */
    margin-top: 0 !important;        /* 上に食い込むのを防ぐ */
    top: auto !important;
    clear: both !important;
    display: block !important;
}

/* フッターを押し下げるための「重し」の調整 */
div[style*="clear: both; height: 100px;"] {
    height: 150px !important;        /* 隙間を広げます */
    display: block !important;
}

/* --- 5. 記念イベントエリア（決定版） --- */
#jsai2026-custom-page .anniversary-box {
    position: relative !important;   /* 絶対に必要 */
    overflow: hidden !important;     /* 角丸からはみ出さない */
    padding: 45px;
    border-radius: 15px;
    border: 1px solid #dce4ec;
    background-color: #f0f4f8 !important; 
    z-index: 1 !important;           /* 文字を前に出す */
}

/* 背景画像を薄く敷く擬似要素 */
#jsai2026-custom-page .anniversary-box::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
    /* ⚠️ HTML内のstyleタグなので、このPHPの書き方が一番確実です */
    background-image: url('images/JSAI2026_sikitenr.jpg') !important;
    
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.2 !important;         /* 0.15だと薄すぎた可能性があるので少し上げました */
    z-index: -1 !important;          /* 文字の後ろに潜り込ませる */
    display: block !important;
}

/* 文字が画像に負けないように調整 */
#jsai2026-custom-page .anniversary-box .sub-title,
#jsai2026-custom-page .anniversary-box .info-table {
    position: relative !important;
    z-index: 2 !important;
}

#jsai2026-custom-page .hero-section {
    position: relative; 
    width: 100%;
    height:50vh; /* 例えば画面の高さの6割にするなど、高さを指定 */
    overflow: hidden;
}

/* ヘッダーを一番手前に持ってくる */
header, 
#masthead, 
.site-header { 
    position: relative !important;
    z-index: 9999 !important; 
}

/* 動画エリアの重なり順を下げる */
#jsai2026-custom-page .hero-section {
    z-index: 1 !important;
}

</style>