@charset "utf-8";
/* CSS Document */

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 80px;
    height: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.3;
}

.header-info {
    text-align: right;
}

.venue, .theme {
    font-size: 14px;
    margin-bottom: 3px;
    line-height: 1.3;
}

/* メインラッパー - サイドバー全体表示対応 */
.main-wrapper {
    display: flex;
    min-height: auto; /* 自動高さに変更 */
    margin-top: 120px;
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('../img/bg-pattern.jpg') center/cover fixed;
    background-attachment: fixed;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* メインコンテンツ - サイドバーに合わせて高さ調整 */
.main-content {
    flex: 1;
    margin-left: 0; /* margin-leftを0に変更 */
    background-color: transparent;
    width: 1000px;
    position: relative;
    padding-bottom: 50px;
    padding-top: 30px;
}

/* コンテンツラッパー - 各セクション用 */
.content-wrapper {
    background-color: white;
    margin: 0 20px 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 動画セクション */
.video-section {
    padding: 50px 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ニュースセクション */
.news-section {
    padding: 50px 40px;
}

.news-list {
    margin: 0 auto;
}

.news-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.news-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: bold;
}

.news-title {
    color: #2c5aa0;
    margin: 8px 0;
    font-size: 18px;
}

.news-summary {
    color: #666;
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}

/* ダウンロードセクション */
.download-section {
    padding: 50px 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.download-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-item:hover {
    transform: translateY(-3px);
    border-color: #2c5aa0;
    background: white;
}

.download-thumbnail {
    width: 100%;
    height: 360px;
    overflow: hidden;
    background-color: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-thumbnail img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.download-item h4 {
    padding: 20px 20px 10px;
    color: #2c5aa0;
    font-size: 16px;
}

.download-description {
    padding: 0 20px;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.download-item .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* マップセクション（モバイル時のみ表示） */
.map-section {
    padding: 50px 40px;
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.venue-info {
    text-align: center;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.venue-info h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 20px;
}

/* スポンサーセクション（モバイル時のみ表示） */
.sponsor-section {
    padding: 50px 40px;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.sponsor-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sponsor-item:hover {
    transform: translateY(-2px);
    border-color: #2c5aa0;
    background: white;
}

.sponsor-item img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* フッター */
.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0 20px;
    width: 100%;
    position: relative;
    z-index: 998;
    margin-top: 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h4,
.footer-contact h4 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 90%;
}

/* セクションタイトル調整 */
.section-title {
    font-size: 24px;
    color: #2c5aa0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #2c5aa0;
}

/* レスポンシブ表示制御 */
@media (min-width: 901px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* 大画面対応 */
@media (min-width: 1400px) {
    .main-wrapper {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .main-content {
        width: 1000px;
    }
}

/* 1366px幅対応（一般的なノートPC） */
@media (max-width: 1366px) and (min-width: 1025px) {
    .main-wrapper {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .main-content {
        width: calc(100vw - 300px);
        max-width: none;
    }
    
    .content-wrapper {
        margin: 0 15px 25px 15px;
    }
}

/* タブレット横向き・小型ノートPC対応 */
@media (max-width: 1024px) and (min-width: 901px) {
    .main-wrapper {
        max-width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        width: calc(100vw - 280px);
        max-width: none;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .content-wrapper {
        margin: 0 12px 20px 12px;
    }
    
    /* ヘッダー調整 */
    .header-content {
        padding: 12px 20px;
        min-height: 70px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .venue, .theme {
        font-size: 13px;
    }
}

/* タブレット縦向き対応 */
@media (max-width: 900px) and (min-width: 769px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding-bottom: 30px;
        padding-top: 20px;
    }
    
    .content-wrapper {
        margin: 0 15px 25px 15px;
        border-radius: 12px;
    }
    
    .header-content {
        padding: 10px 60px 10px 20px;
        flex-direction: row;
        text-align: left;
    }
    
    .header-info {
        text-align: right;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
        padding-bottom: 30px;
        padding-top: 20px;
    }
    
    .content-wrapper {
        margin: 0 10px 20px 10px;
        border-radius: 10px;
    }
    
    .video-section,
    .map-section,
    .news-section,
    .download-section,
    .sponsor-section {
        padding: 30px 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 10px 50px 10px 20px;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .header-info {
        text-align: center;
    }
    
    .venue, .theme {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* 小型スマートフォン対応 */
@media (max-width: 480px) {
    .header-content {
        padding: 8px 45px 8px 45px;
        gap: 5px;
    }
    
    .logo h1 {
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .venue, .theme {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        margin: 0 5px 15px 5px;
    }
    
    .video-section,
    .map-section,
    .news-section,
    .download-section,
    .sponsor-section {
        padding: 20px 15px;
    }
}

.jsgdlogo{
    height: 100px;
width: auto;
}

@media (max-width: 1030px) {.jsgdlogo{
    height: 80px;
width: auto;
	margin-top: 10px;
	}}

.app-table {
    margin: 20px 0;
    overflow-x: auto;
}

.app-table {
    margin: 20px 0;
    overflow-x: auto;
}

.app-table table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
	font-weight: bold;
}

.app-table th,
.app-table td {
    border: 2px solid #333;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
	padding: 10px 4px;
}

.app-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    border: 2px solid #333;
}


/* ヘッダー行の下線を太く */
.app-table thead tr th {
    border-bottom: 2px solid #333;
}

/* メインカテゴリーのフォントを太く */
.app-table .main-category {
    font-weight: bold;
	border-bottom: 2px solid #333;
}

/* カテゴリー間の境界線を太く */
.app-table .category-end td {
    border-bottom: 2px solid #333;
}

/* 金額が変わる部分の境界線を太く */
.app-table .price-change td {
    border-bottom: 2px solid #666;
}
.register h4 {
	margin-top: 26px;
	margin-bottom: 6px;
	font-size: 105%;
	border-bottom: 1px dashed #A09B9B;
}

@media (max-width: 768px) {
	.app-table td,.app-table th{
		font-size: 11px!important;
	}
	.register{
		font-size: 13px!important;
	}
	
}

.period-table {
    margin: 20px 0;
    overflow-x: auto;
}

.period-table {
    margin: 20px 0;
    overflow-x: auto;
}

.period-table table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
}

.period-table th,
.period-table td {
    border: 2px solid #333;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
	font-weight: bold;
}

.period-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    border: 2px solid #333;
}

/* ==================================================
   フッター簡易メニュー
================================================== */

.footer-menu {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #495057;
}

.footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.footer-menu a {
    display: inline-block;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.86;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-menu {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .footer-menu ul {
        justify-content: flex-start;
        gap: 8px 0;
    }

    .footer-menu li {
        width: 50%;
    }

    .footer-menu a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-menu li {
        width: 100%;
    }
}

/* ==================================================
   印刷時調整
   固定ヘッダーによる改ページ重なり対策
================================================== */

@media print {

    /* 固定ヘッダーを印刷時は通常配置に戻す */
    .header {
        position: static !important;
        box-shadow: none !important;
        min-height: auto !important;
    }

    .header-content {
        min-height: auto !important;
        padding: 10px 0 !important;
    }

    /* 固定ヘッダー用の余白を解除 */
    .main-wrapper {
        display: block !important;
        margin-top: 0 !important;
        max-width: none !important;
        background: none !important;
    }

    /* 印刷時はサイドメニューを非表示 */
    .sidebar {
        display: none !important;
    }

    /* 本文を印刷幅いっぱいに */
    .main-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .content-wrapper {
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .page-content {
        padding: 20px 0 !important;
    }

    /* パンくず・ページ上部装飾は印刷時に不要なら非表示 */
    .breadcrumb,
    .page-title-banner,
    .btn-area,
    .footer-menu,
    .back-to-top {
        display: none !important;
    }

    /* 見出し直後での改ページを避ける */
    h2,
    h3,
    h4 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* 表・DLボタン・画像まわりの途中分断をなるべく防ぐ */
    table,
    dl,
    .btn-dl,
    .poster,
    figure,
    img {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* 背景色・影を抑えて印刷向けに */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
        overflow: visible !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }
}