/* --- 基本リセット --- */
html, body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* --- 全体レイアウト構成 --- */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- サイドバー本体（伸縮アニメーション） --- */
.sidebar {
    width: 70px; /* 通常時 */
    height: 100vh;
    background-color: #000;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar:hover {
    width: 200px; /* 開いた時 */
}

/* ロゴエリア */
.sidebar-logo {
    width: 100%;
    padding: 20px 10px 10px 10px;
    text-align: center;
    box-sizing: border-box;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* メニュー項目 */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.sidebar li a {
    display: flex;
    align-items: center;
    height: 60px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #222;
    transition: background 0.2s;
    white-space: nowrap; /* 文字の折り返し防止 */
}

.sidebar li.active a {
    background-color: #4a86a8;
}

.sidebar li a:hover {
    background-color: #333;
}
/* --- サイドバーの筆文字設定 --- */
.sidebar li a {
    /* フォントを筆文字に変更 */
    font-family: 'Yuji Syuku', serif; 
}

/* 通常見えている一文字（「Top」「概」など） */
.short {
    min-width: 50px; 
    text-align: center;
    font-weight: bold;
    /* 筆文字は線が細い部分があるので、少し大きめが映えます */
    font-size: 24px; 
    /* 文字の横幅を少し狭めてシュッとさせたい場合は以下を調整 */
    letter-spacing: -2px; 
    display: block;
}

/* ホバーした時に出てくるフルネーム */
.full {
    font-size: 18px;
    letter-spacing: 1px;
}

/* ホバーした時に出てくるフルネーム */
.full {
    font-size: 18px;
    letter-spacing: 1px;
}

/* 常に表示されている一文字（「概」「ホ」など） */
.short {
    min-width: 50px; /* サイドバーの通常幅に合わせて調整 */
    text-align: center;
    font-weight: bold;
    font-size: 22px; /* 筆文字は少し大きめが映えます */
    flex-shrink: 0;
    display: block;
}

/* マウスを乗せた時に出るフルテキスト（「大会概要」など） */
.full {
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 10px;
    font-size: 16px;
    white-space: nowrap;
}

/* マウスホバー時に長い文字を表示する */
.sidebar:hover .full {
    opacity: 1;
}

/* 常に表示する短い文字（またはアイコン） */
.short {
    min-width: 70px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* ホバーで現れる長い文字 */
.full {
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-left: 10px;
    font-size: 13px;
}

.sidebar:hover .full {
    opacity: 1;
}



/* --- スライダーセクション --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
}

.slide-img {
    position: absolute;
    object-fit: cover;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 演出設定 */
.left-top {
    width: 33.3%;
    height: 100%;
    left: 0;
    top: -100%;
    animation: slideDown 0.8s ease-out 0.5s forwards;
}

.right-bottom {
    width: 33.3%;
    height: 100%;
    right: 0;
    bottom: -100%;
    animation: slideUp 0.8s ease-out 1.5s forwards;
}

.center-fade {
    width: 33.4%;
    height: 100%;
    left: 33.3%;
    top: 0;
    transform: scale(0.5);
    animation: centerIn 0.8s ease-out 2.5s forwards;
}

/* --- ④ 最後にポワーンと出す演出 --- */

/* 黒背景のレイヤー */
.final-impact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* 背景は黒 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0; /* 最初は隠す */
    /* 4.0秒後から背景をフェードイン */
    animation: fadeInBg 1.0s ease-out 4.0s forwards;
}

/* ロゴの動き */
.impact-logo {
    width: 70%;       /* ロゴの表示サイズ（お好みで調整） */
    max-width: 800px;
    height: auto;
    object-fit: contain !important; /* ロゴを歪ませない */
    opacity: 0;
    transform: scale(0.9); /* 最初は少し小さめ */
    /* 背景より少し遅れて（4.3秒〜）ロゴをポワーンと出す */
    animation: logoPopBlur 1.5s cubic-bezier(0.22, 1, 0.36, 1) 4.3s forwards;
}

/* --- 追加のアニメーション定義 --- */

/* 背景がじわ〜っと出る */
@keyframes fadeInBg {
    to { opacity: 1; }
}

/* ロゴがぼかしから浮かび上がる（ポワーン） */
@keyframes logoPopBlur {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(15px); /* 最初はかなりボカす */
    }
    50% {
        opacity: 1;
        filter: blur(5px);  /* 徐々にハッキリ */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* 元のサイズ */
        filter: blur(0);    /* 完全にハッキリ */
    }
}

/* --- 下部 黒背景コンテンツエリア --- */
.black-section {
    background-color: #000;
    color: #fff;
    padding: 60px 40px; /* 左右の余白を調整 */
}

/* ロゴ並びの設定 */
.logo-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    gap: 20px;
}

.row-4 li { width: calc(25% - 20px); max-width: 200px; }
.row-3 li { width: calc(33.33% - 20px); max-width: 220px; }

.logo-row li img {
    width: 100%;
    height: auto;
    display: block;
}

/* 新着情報 */
.newslist {
    margin-top: 60px;
    padding-bottom: 50px;
    color: #ffffff;
}

.newslist h2 { text-align: center; margin-bottom: 20px; }
.newslist h2 span { border-bottom: 2px solid #ffffff; }

#news_feed {
    max-width: 800px;
    margin: 20px auto;
    border-top: 1px solid #444;
}

#news_feed dt {
    float: left;
    width: 120px;
    padding: 15px 0;
    font-weight: bold;
}

#news_feed dd {
    margin-left: 120px;
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

/* --- アニメーション定義 --- */
@keyframes slideDown { to { top: 0; opacity: 1; } }
@keyframes slideUp { to { bottom: 0; opacity: 1; } }
@keyframes centerIn { to { transform: scale(1); opacity: 1; } }
@keyframes zoomImpact {
    0% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 大会要項（既存設定の維持と微調整） */
#gaiyou { width: 100%; max-width: 760px; margin: 0 auto; }
.article_list { border-top: 2px solid #fff; border-bottom: 2px solid #fff; background-color: #111; margin-bottom: 40px; }
.article_list > dl { display: flex; border-bottom: 1px dashed #555; }
.article_list > dl > dt { width: 10%; padding: 15px 20px; color: #e6d8b3; font-weight: bold; flex-shrink: 0; }
.article_list > dl > dd { padding: 15px 20px; flex: 1; }
/* レイアウト全体の調整 */
.wrapper {
  display: flex; /* 横並びにする */
}

/* 中央の表（大会概要）の幅を調整 */
.container {
  max-width: 1000px;  /* 表が広がりすぎないように制限 */
  margin: 0 auto;     /* メインエリアの中央に配置 */
}

/* タイトル「大会概要」を中央に */
.gaiyou_title {
  text-align: center;
  margin-bottom: 40px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .content { margin-left: 0; } /* スマホではサイドバーを隠すか調整が必要 */
    /*.sidebar { display: none; }  一旦非表示に設定 */
    .row-4 li, .row-3 li { width: calc(50% - 20px); }
    #news_feed dt { float: none; width: auto; }
    #news_feed dd { margin-left: 0; }
}

/* --- メインエリア全体の修正 --- */
.page-gaiyou #main{
    /* サイドバーの通常幅（70px）分、左に余白を作る */
    margin-left: 70px; 
    width: calc(100% - 70px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- コンテンツエリアを中央寄せにする --- */
.content {
    flex: 1;
    width: 100%;
    /* 以前の margin-left: 70px; は削除または上書き */
    margin-left: 0 !important; 
    padding: 60px 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1000px; /* ここでお好みの最大幅に制限 */
    margin: 0 auto;    /* これで中央に寄ります */
}

/* タイトルの中央揃えを確実に */
.gaiyou_title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

/* =================================================
   ホール紹介ページ (@page-hole) 修正スタイル
   ================================================= */

/* メインエリアを中央に寄せるための土台 */
.hole-page #main {
    margin-left: 70px; /* サイドバーの幅 */
    width: calc(100% - 70px);
    background-color: #000;
    display: block; /* 中央寄せを確実に効かせる */
}

/* ★新しく追加：中身を中央にまとめるコンテナ */
.hole-container {
    width: 95%;
    max-width: 1000px; /* コンテンツの最大幅 */
    margin: 0 auto;    /* 左右中央寄せ */
    padding: 60px 0;
}

.hole_title {
    text-align: center;
    font-family: 'Yuji Syuku', serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

/* 情報テーブルの装飾 */
.tb_info {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.tb_info table {
    width: 100%;
    border-collapse: collapse;
}

.tb_info th {
    background: #222;
    color: #e6d8b3;
    padding: 12px;
    border: 1px solid #333;
}

.tb_info td {
    padding: 15px;
    border: 1px solid #333;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

/* コースカードのグリッド配置 */
.course ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
}

.course li {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.course h4 {
    background: #222;
    padding: 15px;
    margin: 0;
    font-family: 'Yuji Syuku', serif;
    text-align: center;
    border-bottom: 1px solid #333;
}

.course dl {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.course dt { width: 50%; color: #888; margin-bottom: 8px; }
.course dd { width: 50%; margin: 0 0 8px 0; font-weight: bold; text-align: right; }

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .hole-page #main { margin-left: 0; width: 100%; }
    .hole-container { padding: 40px 15px; }
}

/* --- 歴代ページ専用スタイル --- */

.rekidai-page #main {
    margin-left: 70px;
    background-color: #000;
}

.rekidai_title {
    font-family: 'Yuji Syuku', serif;
    font-size: 32px;
    margin-bottom: 50px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

/* 年ごとのカード */
.year-block {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 40px; /* 少し広げました */
    margin-bottom: 80px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.year-header {
    margin-bottom: 30px;
    border-left: 5px solid #4a86a8;
    padding-left: 20px;
}

.year-label {
    font-size: 14px;
    color: #4a86a8; /* アクセントカラーに変更 */
    display: block;
    letter-spacing: 3px;
    font-weight: bold;
}

.winner-name {
    font-family: 'Yuji Syuku', serif;
    font-size: 36px; /* サイズアップ */
    color: #fff;
    margin-top: 5px;
}

.winner-en {
    font-size: 18px;
    color: #666;
    margin-left: 15px;
    font-family: 'Georgia', serif;
}

/* --- 歴代ページ全体調整 --- */
.page-rekidai #main {
    margin-left: 70px; /* サイドバーの幅を確保 */
    background-color: #000;
    width: calc(100% - 70px);
}

.page-rekidai .container {
    max-width: 900px;
    margin: 0 auto; /* 中央揃え */
    padding: 60px 20px;
}

/* タイトル装飾 */
.rekidai_title {
    font-family: 'Yuji Syuku', serif;
    font-size: 32px;
    text-align: center;
    color: #e6d8b3; /* ゴールド系 */
    margin-bottom: 60px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

/* 各年度のセクション */
.winner-section {
    margin-bottom: 100px;
}

.year-title {
    font-family: 'Yuji Syuku', serif;
    font-size: 24px;
    background: linear-gradient(90deg, #333, #000);
    padding: 10px 20px;
    border-left: 4px solid #e6d8b3;
    margin-bottom: 30px;
}

.year-title span {
    font-size: 16px;
    color: #aaa;
    display: block;
}

/* 優勝者詳細レイアウト */
.winner-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.winner-img img {
    border: 2px solid #333;
    padding: 5px;
    width: 280px;
}

.winner-info .course-info {
    color: #e6d8b3;
    font-weight: bold;
    margin-bottom: 10px;
}

.winner-info .comment {
    font-size: 15px;
    line-height: 1.8;
    color: #ccc;
}

/* 表のカスタマイズ（かっこいい感じ） */
.tblWin {
    width: 100%;
    border-collapse: collapse;
    background-color: #111;
    font-size: 14px;
}

.tblWin th {
    background-color: #222;
    color: #e6d8b3;
    padding: 12px;
    border: 1px solid #333;
    text-align: center;
    font-weight: normal;
}

.tblWin td {
    padding: 12px;
    border: 1px solid #333;
    text-align: center;
    color: #fff;
}

/* 優勝行の目立たせ */
.first-place {
    background-color: rgba(230, 216, 179, 0.1);
}

.rank-name {
    text-align: left !important;
    font-weight: bold;
    padding-left: 20px !important;
}

.crown {
    color: #ff4500;
    margin-right: 5px;
}

.score {
    font-weight: bold;
    color: #e6d8b3;
}

.money {
    font-family: 'Courier New', Courier, monospace;
    text-align: right !important;
}

/* --- レスポンシブ調整（スマホ対応） --- */
@media screen and (max-width: 768px) {
    /* 1. サイドバーを非表示にする（スマホ用メニューは別途用意する前提） */
    .sidebar {
        display: none; 
    }

    /* 2. メインエリアを全幅にする */
    .hole-page #main,
    .page-gaiyou #main,
    .page-rekidai #main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* 3. コンテンツの余白を最適化 */
    .content,
    .container {
        padding: 20px 15px !important;
        width: 95% !important;
        box-sizing: border-box;
    }

    /* 4. テーブルを横スクロール対応にする */
    .tb_info,
    .tblWin {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tb_info table,
    .tblWin {
        min-width: 600px; /* スクロールさせるための最低幅 */
    }

    /* 5. コースカードを縦並びに */
    .course ul {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}
/* 表を囲む要素に横スクロールを許可する */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかにする */
  margin-bottom: 20px;
}

/* 表が潰れないように最小幅を指定する */
.tblWin {
  min-width: 600px; /* 画面幅がこれより狭い場合にスクロールが発生します */
  width: 100%;
  border-collapse: collapse;
}
/* スマートフォン向けの調整 */
@media screen and (max-width: 768px) {
  
  /* 写真と文章を囲んでいる要素の横並びを解除 */
  .winner-detail {
    display: block; /* 横並びを解除して縦に並べる */
  }

  /* 写真の横幅を画面いっぱいに調整 */
  .winner-img {
    width: 100%;
    margin-bottom: 15px; /* 下の文章との間に少し隙間を作る */
  }

  .winner-img img {
    width: 100%;
    height: auto;
  }

  /* 文章の横幅を調整 */
  .winner-info {
    width: 100%;
    padding: 0 10px; /* 左右に少し余白を作ると読みやすくなります */
    box-sizing: border-box;
  }
}