/* ヘッダー */
/* スクロールロック用のクラス - シンプル版 */
body.menu-open {
    overflow: hidden;
  }


  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: #fff; /* transparent から #fff に変更 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 境界線を追加（タブレットと統一） */
}

.page-header {
    padding-top: 120px !important;
    margin-top: 80px;
}
  
.menu-button {
    width: 80px;
    height: 80px;
    background: #002C6C;
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
  
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    align-items: center;
    justify-content: center;
}

.menu-icon span {
    display: block;
    width: 40px;
    height: 1px;
    background: white;
}
  
.menu-button p {
    font-size: 10px;
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.1em;
    font-family: "BIZ UDPGothic", sans-serif !important;
}
  
/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* 画面全体の幅 */
    background: rgba(0, 0, 0, 0.6); /* 写真から確認した背景色 */
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右揃えに変更 */
    z-index: 2000;
    overflow-y: auto; /* スクロール可能に */
}

.nav-menu, 
#nav-menu {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
}
  
/* 閉じるボタン */
.menu-close {
    position: fixed; /* 絶対位置から固定位置に変更 */
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: #002C6C;
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2000; /* 最前面に設定 */
}

.close-icon {
    position: relative;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon span {
    position: absolute;
    width: 40px;
    height: 1px;
    background: white;
}

.close-icon span:first-child {
    transform: rotate(-153.43deg); /* 1本目の線の回転角度 */
}

.close-icon span:last-child {
    transform: rotate(-26.57deg); /* 2本目の線の回転角度 */
}
        
.menu-close p {
    font-size: 10px;
    margin-bottom: 0;
    text-align: center;
    letter-spacing: 0.1em;
    font-family: "BIZ UDPGothic", sans-serif !important;
}

/* 重要: 閉じるボタンの初期状態 */
.menu-close {
    display: none; /* 初期状態では非表示 */
}

/* 重要: メニュー表示時の閉じるボタン */
.nav-menu.active + .menu-close,
.nav-menu.active .menu-close {
    display: flex; /* メニューがアクティブな時だけ表示 */
}

.nav-sidebar {
    width: 5%; /* パーセンテージに変更 */
    min-width: 40px; /* 最小幅を確保 */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

/* 右側の暗い部分 */
.nav-sidebar-right {
    width: 5%; /* パーセンテージに変更 */
    min-width: 40px; /* 最小幅を確保 */
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

/* メニューコンテンツのラッパー */
.nav-content {
    width: 90%; /* パーセンテージに変更 */
    height: 900px;
    background: #FFFFFF;
    position: relative;
    padding: 220px 5% 80px 5%; /* パーセンテージに変更 */
    display: flex;
    flex-direction: column;
}

/* タイトル */
.nav-title-container {
    width: 100%; /* パーセンテージに変更 */
    max-width: 1200px;
    height: 180px; /* 高さを調整 */
    display: flex;
    align-items: center;
    margin-bottom: 70px; 
}

.nav-title {
    font-family: "BIZ UDPGothic", sans-serif !important;
    font-size: 104px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -5%;
    color: #002C6C;
    margin: 0;
}

.nav-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 100; /* より高いz-indexに設定 */

}


/* ナビゲーショングリッド部分 */
.nav-grid {
    width: 100%; /* パーセンテージに変更 */
    max-width: 1200px;
    height: auto; /* 自動高さに変更 */
    min-height: 340px; /* 最小高さを設定 */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2%; /* パーセンテージに変更 */
    position: relative;
}

/* カラム間の区切り線 - 削除 */
.nav-grid::before,
.nav-grid::after {
    display: none;
}

/* 3列目と4列目の間の追加線 - 削除 */
.nav-column:nth-child(3)::after {
    display: none;
}

/* カラム設定 */
.nav-column {
    position: relative;
    height: auto;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

/* カラム区切り線の新しい実装方法 - カテゴリに応じて区切る */
.nav-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* カテゴリーセクション */
.nav-category {
    display: flex;
    flex-direction: column;
    position: relative;
}

.nav-category:last-child {
    margin-bottom: 0;
}

/* 同じ列内の第1カテゴリーの高さを揃える */
.nav-column:nth-child(1) .nav-category:nth-child(1),
.nav-column:nth-child(2) .nav-category:nth-child(1),
.nav-column:nth-child(3) .nav-category:nth-child(1),
.nav-column:nth-child(4) .nav-category:nth-child(1) {
    flex: 0.8;
}

/* 同じ列内の第2カテゴリーの高さを揃える */
.nav-column:nth-child(1) .nav-category:nth-child(2),
.nav-column:nth-child(2) .nav-category:nth-child(2),
.nav-column:nth-child(3) .nav-category:nth-child(2) {
    flex: 0.8;
}

/* タイトルとサブカテゴリーのスタイル */
.nav-category-title {
    font-family: "BIZ UDPGothic", sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    color: #002C6C;
    margin: 0 0 20px 0;
}

.nav-subcategory {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-subcategory li {
    margin-bottom: 0;
    padding: 2px 0;
}

.nav-subcategory li:last-child {
    margin-bottom: 0;
}

.nav-subcategory a {
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 12px;
    text-decoration: none;
    align-items: center;
    position: relative;
    padding-right: 16px; /* 矢印用のスペース確保 */
    color: rgba(0, 0, 0, 0.5);
}

/* シェブロン（矢印）のスタイル - テキストの '>' を疑似要素に置き換え */
.nav-subcategory a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 0.8px solid #000000;
    border-right: 0.8px solid #000000;
    transform: translateY(-50%) rotate(45deg);
}

/* フッター部分 */
.nav-footer {
    width: 100%; /* パーセンテージに変更 */
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    margin-top: auto; /* 空きスペースを上に追加 */
}

.sns-links {
    display: flex;
    gap: 16px;
}

.sns-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sns-icon img {
    width: 32px;
    height: 32px;
}

.copyright {
    font-family: "BIZ UDPGothic", sans-serif !important;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

/* コピーライトの © を大きくする */
.copyright::before {
    content: '©';
    font-size: 14px; /* 通常の2倍 */
    line-height: 0;
    vertical-align: middle;
    margin-right: 2px;
}

/* コピーライトからテキストの © を削除 */
.copyright span {
    display: none;
}

/* 中間画面サイズ対応（769px～1300px） */
@media (min-width: 769px) and (max-width: 1300px) {
    .nav-title {
        font-size: 80px; /* タイトルサイズを縮小 */
    }
    
    .nav-content {
        padding: 120px 4% 60px 4%; /* パディングを縮小 */
    }
    
    .nav-title-container {
        margin-bottom: 30px; /* 間隔調整 */
    }
    
    .nav-grid {
        margin-bottom: 30px; /* 間隔調整 */
    }
    
    .nav-category-title {
        font-size: 20px; /* カテゴリタイトルサイズを縮小 */
    }
    
    .nav-subcategory a {
        font-size: 11px; /* リンクテキストサイズを縮小 */
    }
    
    /* シェブロンのサイズも調整 */
    .nav-subcategory a::after {
        width: 5px;
        height: 5px;
    }
}

/* 小さめのデスクトップ対応（769px～1100px） */
@media (min-width: 769px) and (max-width: 1100px) {
    .nav-title {
        font-size: 70px; /* さらにタイトルサイズを縮小 */
    }
    
    .nav-content {
        padding: 100px 3% 50px 3%; /* さらにパディングを縮小 */
    }
    
    .nav-title-container {
        margin-bottom: 25px; /* 間隔調整 */
    }
    
    .nav-grid {
        margin-bottom: 25px; /* 間隔調整 */
        gap: 2%; /* グリッド間隔を縮小 */
    }
    
    .nav-category-title {
        font-size: 18px; /* カテゴリタイトルをさらに縮小 */
        margin: 0 0 15px 0;
    }

    
    .nav-subcategory a {
        font-size: 10px; /* リンクテキストをさらに縮小 */
    }
    
    /* シェブロンのサイズも調整 */
    .nav-subcategory a::after {
        width: 4px;
        height: 4px;
    }
}

/* タブレット対応のためのCSS */
@media (max-width: 768px) {
    /* デスクトップメニューの初期表示設定 */
    .desktop-menu, 
    .header {
        display: none;
    }

    .menu-button p {
        font-size: 8px;
        margin-top: 4px;
    }
    /* タブレット用固定ヘッダー */
    .tablet-fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 56px;
        background-color: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .tablet-fixed-header .logo-container {
        padding-left: 20px;
    }
    
    .tablet-logo {
        height: 28px;
    }
    
    /* ボタンスタイルオーバーライド（タブレット用） */
    .tablet-menu-button {
        width: 56px;
        height: 56px;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
    }
    
    .tablet-menu-close {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        display: none;
    }
    
    /* タブレットメニューの基本設定 */
    .tablet-menu {
        display: block;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        background-color: #fff;
        overflow-y: auto;
        padding-top: 60px;
        z-index: 999;
    }
    
    .tablet-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* タブレットコンテンツ */
    .tablet-content {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* 大きなタイトル */
    .tablet-title {
        padding: 40px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .tablet_title {
        font-family: "BIZ UDPGothic", sans-serif !important;
        font-size: 48px;
        font-weight: 700;
        color: #002C6C;
        margin: 0;
        line-height: 1.2;
    }
    
    /* タブレットメニューリスト */
    .tablet-menu-list {
        padding: 0;
    }
    
    /* カテゴリースタイル */
    .tablet-category {
        padding: 15px;
        border-bottom: 1px solid #e5e5e5; /* 薄いグレーの実線 */
    }

    .tablet-category:last-child {
        border-bottom: none;
    }
    
    /* メニュー項目間の間隔を調整 */
    .tablet-subcategory li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .tablet-category-title {
        font-family: "BIZ UDPGothic", sans-serif !important;
        font-size: 20px;
        font-weight: 700;
        color: #002C6C;
        margin: 0 0 15px 0;
    }
    
    .tablet-subcategory {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .tablet-subcategory li {
        margin-bottom: 15px;
        padding-bottom: 15px;
        position: relative;
    }

    .tablet-subcategory:not(:last-child):after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%; /* 幅85% */
        height: 1px;
        background-image: linear-gradient(to right, #ccc 1px, transparent 1px);
        background-position: bottom;
        background-size: 4px 1px; /* ドットのサイズと間隔 */
        background-repeat: repeat-x;
    }

    .tablet-subcategory li:not(:last-child):after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%; /* 幅85% */
        height: 1px;
        background-image: linear-gradient(to right, #ccc 1px, transparent 1px);
        background-position: bottom;
        background-size: 4px 1px; /* ドットのサイズと間隔 */
        background-repeat: repeat-x;
    }

    .tablet-subcategory a {
        font-family: "BIZ UDPGothic", sans-serif !important;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.5);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding-left: 10px;
    }
    
    /* タブレット用シェブロン */
    .tablet-subcategory a::after {
        content: '';
        width: 6px;
        height: 6px;
        border-top: 1px solid #002C6C;
        border-right: 1px solid #002C6C;
        transform: rotate(45deg);
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: -3px;
    }
    
    /* タブレットフッター */
    .tablet-footer {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 20px 20px 100px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .menu-icon {
        gap: 2.5px;
    }

    .menu-icon span {
        width: 30px;
    }

    .menu-close {
        width: 56px;
        height: 56px;
    }

    .close-icon span {
        width: 30px;
    }

    .close-icon {
        height: 25px;
    }

    .menu-close p {
        font-size: 8px;
    }
}



/* カラム区切り線の実装を削除 */
.nav-column:not(:last-child)::after {
    display: none; /* 元の実装を無効化 */
}

/* カテゴリーごとの区切り線の新しい実装 */
.nav-category {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* カテゴリーごとに右側に線を追加 */
.nav-category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 80%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Competition & Award カテゴリーの線を非表示にする */
.nav-column:nth-child(4) .nav-category::after {
    display: none;
}

/* タブレット対応も同様に修正 */
@media (max-width: 768px) {
    .tablet-category::after {
        display: none; /* タブレット表示では線なし */
    }
    .page-header {
        padding-top: 64px !important;
    }
}


  
  /* ナビゲーションメニューは引き続きスクロール可能に */
  .nav-menu {
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .tablet-menu {
    overflow-y: auto;
    max-height: 100vh;
  }









  /* 常設ロゴ追加 */
/* PC用ロゴコンテナ（PC時のみ表示） */
.pc-logo-container {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.pc-logo-container .logo-link {
    text-decoration: none;
    display: block;
}

.pc-logo {
    height: 40px;
    width: auto;
}

/* タブレット以下では修正 */
@media (max-width: 768px) {
    
    .pc-logo-container {
        display: none;
    }
    
    /* タブレットヘッダーを表示 */
    .tablet-fixed-header {
        display: flex;
    }
}