﻿html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}


*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 500;
    font-style: normal;
    background-image: url('image/gaming-pattern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}


a {
    text-decoration: none;
}

a:focus, a:hover {
}



#all_wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    /*z-index: 10;*/
}


section {
    width: 100vw;
	padding: 1rem 2rem;
	margin: 0 auto;
    margin-left: calc(-50vw + 50%); /* 親要素の中央配置を打ち消す */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media screen and (max-width: 768px) {
    section {
        background-attachment: scroll; /* モバイル向け */
    }
}
main {
	max-width: 960px;
	margin: 0 auto 2rem;
}


hr {
    border: none;
    height: 6px;
    background-color: #fffb00;
    margin: 2em 0;
    border-radius: 10px;
}

header{
    padding: 1em;
}


#management {
    background: linear-gradient(to right, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}

#news {
    background: linear-gradient(to right, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}

#card {
    background: linear-gradient(to left, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}

#rule {
    background: linear-gradient(to left, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}

#contact {
    background: linear-gradient(to left, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}

/* 共通のバックグラウンド */
.bg-gradient {
    background: linear-gradient(to left, rgba(245, 228, 241, 0.8), rgba(170, 224, 255, 0.8));
    background-size: cover;
    background-position: center;
}


.title{
	margin: 1rem auto;
	max-width:600px;
	text-align: center;
}

.msg{
	line-height: 2;
    padding: 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 6px rgba(58, 58, 58, 0.3);
}



.in_content {
    width:960px;
	margin: 1em auto;
	padding: 0;
    
}

.info_img p {
    width:60%;
	margin: 2em auto 1em;
	padding: 0;
    
}

.info_img img {
    display: block; /* 画像をブロックレベル要素に変更 */
    margin: 0 auto; /* 上下マージンは0、左右マージンは自動で中央に配置 */
    width: 60%; /* 横幅を元画像の60%に設定 */
    height: auto; /* 縦横比を維持 */
    border-radius: 6px;
}


/* レスポンシブ対応（スマホ・タブレット用） */
@media screen and (max-width: 768px) {
    .in_content {
        width:100%;
        margin: 1em auto;
        padding: 0 1em;
    }


}

.txt_red {
    font-weight: 700;
    color:red;
}

.txt_large {
    font-weight: 900;
    font-size:1.2rem;
}

h3{
    font-size: 1.2rem;
    text-align: center;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
}

h4{
    color: #0076bc;
    margin: .8rem auto;
    text-align: left;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    padding: 0;
}


h5{
    color: #0076bc;
    margin: .8rem auto;
    text-align: left;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    padding: 0;
}

.box_column h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.rule_box h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}


.box_column h2 .highlight,
.rule_box h2 .highlight {
    text-decoration: none; /* 元の下線装飾を無効化 */
    border-bottom: 3px solid #000; /* 3pxの実線ボーダー */
    padding-bottom: 2px; /* 文字と罫線の間にわずかな隙間を作る */
}

.up_date {
    font-size: 1rem;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    padding: 8px;
    background-color: #0076bc;
    color:#ffffff;
    width: 220px;
    text-align: center;
    margin-bottom: 12px;
}

.kouza_title {
    font-size: 1.2rem;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
}

.kouza_koushi {
    font-size: 1rem;
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
}

ul {
    margin: .8rem auto;
    padding: 0;
}

/*==============================*/

ol {
    counter-reset: section; /* セクションカウンターのリセット */
    list-style: none; /* デフォルトの番号を非表示 */
    padding-left: 0; /* 左の余白調整 */
  }
  
  ol > li {
    counter-increment: section; /* カウンターを増加 */
    position: relative; /* 番号の配置調整 */
    padding-left: 30px; /* 番号分の余白を確保 */
  }
  
  ol > li::before {
    content: counter(section); /* 親リストの番号 */
    font-weight: bold; /* 太字 */
    position: absolute;
    left: 0; /* 番号を左に固定 */
  }
  
  ol ol {
    counter-reset: subsection; /* サブカウンターのリセット */
    list-style: none; /* デフォルトの番号を非表示 */
    padding-left: 20px; /* インデントを調整 */
  }
  
  ol ol > li {
    counter-increment: subsection; /* サブカウンターを増加 */
    position: relative;
    padding-left: 40px; /* 番号分の余白を確保 */
  }
  
  ol ol > li::before {
    content: counter(section) "-" counter(subsection); /* "1-1", "1-2" の形式 */
    font-weight: bold;
    position: absolute;
    left: 0;
  }
  
/*==============================*/

.rule_box ul {
    list-style: none; /* デフォルトのリストマーカーを非表示 */
    padding-left: 0; /* 左の余白をリセット */
}

.rule_box ul li {
    position: relative;
    padding-left: 20px; /* サブマーカー（■）の分の余白を確保 */
}

.rule_box ul li::before {
    content: "■"; /* リストマーカーを追加 */
    font-weight: bold;
    position: absolute;
    left: 0;
    color: #3498db; /* マーカーの色 */
}

.rule_box ul ul {
    list-style: none; /* デフォルトのリストマーカーを非表示 */
    padding-left: 20px; /* ネストされたリストのインデント調整 */
}

.rule_box ul ul > li {
    position: relative;
    padding-left: 40px; /* サブマーカー（■）の分の余白を確保 */
}

.rule_box ul ul > li::before {
    content: "■"; /* ネストされたリストのマーカー */
    font-weight: bold;
    position: absolute;
    left: 0;
    color: #3498db; /* マーカーの色 */
}



/*==============================*/

.rule_box,
.download_box {
	line-height: 2;
    padding: 2rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 6px rgba(122, 122, 122, 0.3);
    margin-bottom: 2rem;
}


@media screen and (max-width: 768px) {
        .rule_box,
        .download_box {
            line-height: 1.4;
            padding: 2rem;
            border-radius: 10px;
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 2px 2px 6px rgba(122, 122, 122, 0.3);
            margin-bottom: 2rem;
        }
}

.flag-title {
    display: inline-block;
    position: relative;
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}

.flag-title::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 1.5em solid transparent;
    border-bottom: 1.5em solid transparent;
    border-right: 0.5em solid #ffffff;
}

@media screen and (max-width: 768px) {


    
    .flag-title {
        font-size: 16px; /* 小さめの文字に */
        padding: 8px 16px; /* 余白も調整 */
    }

    .flag-title::before {
        border-top: 1.2em solid transparent;
        border-bottom: 1.2em solid transparent;
        border-right: 0.4em solid #ffffff;
    }


}


/*===========================================*/

.tab-container {
    width: 80%;
    border: 3px solid #34db4a;
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem auto;
}

.tab {
    background: #34db4a;
    color: white;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    font-size: 1.2rem;
}

.content {
    padding: 15px;
    background: white;
}



/*==[もくじのかこみ]==========================*/

.mokuji_box {
    padding:30px;
    margin:20px auto;
    width: 60%;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(122, 122, 122, 0.3);
}

/*==[強調のかこみ]==========================*/

.info_box {
    padding:30px;
    margin:20px auto;
    width: 60%;
    border-radius: 6px;
    border: 2px solid #3F51B5;
}



/* レスポンシブ対応（スマホ・タブレット用） */
@media screen and (max-width: 768px) {

.mokuji_box {
    padding:10px;
    margin:20px auto;
    width: 100%;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(122, 122, 122, 0.3);
}

.info_box {
    padding:10px;
    margin:20px auto;
    width: 100%;
    border-radius: 6px;
    border: 2px solid #3F51B5;
}


}


/*============================*/


/* 横並びの基本レイアウト */
.performer_box {
    display: flex; /* Flexboxを有効化 */
    align-items: center; /* 縦方向の中央揃え */
    gap: 20px; /* 動画とテキストの間隔 */
    flex-wrap: wrap; /* 画面が狭い場合に折り返し */
}

/* 動画のコンテナ */
.video-container_box {
    width: 100%;
    max-width: 320px; /* 固定幅に依存することなく、最大幅設定 */
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-container_box iframe {
    width: 100%; /* 親要素に合わせる */
    height: 100%; /* 縦横比を維持 */
    position: absolute;
    top: 0;
    left: 0;
}



/* テキストのコンテナ */
.text-container {
    flex: 1; /* 均等幅 */
}

/* レスポンシブ対応（スマホ・タブレット用） */
@media screen and (max-width: 768px) {
    .performer_box {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* 要素が中心に配置されるように */
    }

    .video-container, .text-container {
        max-width: 100%; /* 幅を画面いっぱいに */
        text-align: center; /* テキストを中央揃え */
    }

    iframe {
        width: 100%; /* YouTube動画を画面幅にフィット */
        height: auto; /* 高さを自動調整 */
        aspect-ratio: 16 / 9; /* アスペクト比を維持 */
    }
}


.content-center {
    margin: 0 auto;
    text-align: center;
}

.performer_box,
.performer-naiyou{
	background: #fff;
}



.performer-naiyou {
    padding: 1em;
}


@media screen and (min-width: 769px) {
	.performer_box{display:flex;}
	.performer-photo{max-width:45%;}
}

@media screen and (max-width: 768px) {
	.in_content h3{

    }
}
.c-frame {
    margin: 0 auto 1rem;
    /* padding: min(7vw, 20px); */
    max-width: 960px;
}

/*===============*/

.btns {
    position: relative;
    display: inline-flex; /* アイコンとテキストを適切に配置 */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .8em 1em;
    width: 100%;  /* 親要素に合わせて伸縮 */
    max-width: 360px;
    background-color: #ffee00;
    border: 3px solid #f2f2f2;
    border-radius: 3em;
    color: #333;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* テキストがはみ出さないように */
    margin: 0 auto; /* 単独のボタンも中央寄せ */
}

.btns:hover {
    background-color: #3F51B5;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.button-container {
    display: flex;
    gap: 10px; /* ボタン間の余白 */
    justify-content: center; /* ボタンを中央揃え */
    flex-wrap: wrap; /* 小さい画面で折り返しを可能に */
    width: 100%;
}

.link-box {
    display: flex;
    justify-content: center; /* ボタン自体を中央に配置 */
    width: auto; /* 余計な余白を削減 */
    max-width: 360px; /* ボタンの最大幅に合わせる */
}

/* 単独のボタンを中央揃えする */
.center-button {
    display: flex;
    justify-content: center;
    width: 100%;
    margin:1rem auto;
}

@media screen and (max-width: 768px) {
    .button-container {
        flex-direction: column; /* スマホでは縦に並べる */
        align-items: center; /* 中央揃え */
    }

    .btns {
        max-width: 260px; /* スマホでは260px */
        font-size: .8rem;
    }
}



.video-container {
    display: flex;
    flex-wrap: wrap; /* 画面幅に応じて折り返し */
    justify-content: space-between;
    gap: 10px; /* 動画間の隙間 */
}

/* PCでは3列にする */
.video {
    width: calc(33.333% - 10px); /* 3つ並べる */
}

/* iframeのアスペクト比を固定 */
.video iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9の比率を維持 */
    border: none;
}

/* スマホでは1列にする */
@media (max-width: 768px) {
    .video {
        width: 100%; /* 幅いっぱいにする */
    }
}


/*====================*/

/* 新着情報のスタイル */
#latest-news {
    margin: 2rem 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.news-item {
    flex: 1 1 calc(33.333% - 1rem);
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    background-color: #f2f2f2;
    padding: 1rem;
    /*box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);*/
}

.news-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #666;
    margin-bottom: 0.5rem;
}

/*.news-title {
    color: #0076bc;
    margin-bottom: 1rem;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 700;
    font-style: normal;
}*/

.news-excerpt {
    color: #333;
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }

    .news-item {
        flex: 1 1 100%;
            display: flex;
            flex-direction: column;
            border-radius: 6px;
            background-color: #f2f2f2;
            padding: 0;
            /*box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);*/
    }
}

.main_img {
    margin: 10px 0;
    width: 100%;
}



.title_img {
    text-align: left;
}

@media screen and (max-width: 768px) {
    .title_img {
        width: 300px;
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 769px) {
    .title_img {
        width: 300px;
        margin-bottom: 20px;
    }
}



.box_column {
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 20px;
}




/* 画像とテキストの横並びスタイル */
#image-text-box {
    margin: 2rem 0;
}

.image-text-container {
    display: flex;
    flex-direction: row; /* 横並び */
    align-items: center; /* 縦位置を揃える */
    gap: 1rem; /* 要素間のスペース */
    margin-bottom: 2rem;
    align-items: start;
    padding: 20px 20px 0 20px;
}

.image-box {
    flex: 1 1 40%; /* 画像の幅を40% */
    display: flex;
    justify-content: center;
    align-items: center;
}

.box-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.text-box {
    flex: 1 1 60%; /* テキストの幅を60% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*padding: 1rem;*/
    text-align: left;
}

.text-box p {
    text-align: left;
}

.box-title {
    color: #0076bc;
    margin-bottom: 2rem;
}

.box-description {
    color: #333;
}

/* スマホの縦並びスタイル */
@media screen and (max-width: 768px) {


    h3 {
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
    }

    .text-box p {
        font-size: .9rem;
    }


    .image-text-container {
        display: flex;
        flex-direction: column; /* 縦並び */
    }

    .image-box, .text-box {
        flex: 1 1 100%; /* 幅を100%に調整 */
    }

    .text-box {
        width: 90%;
        /* text-align: center; テキストを中央揃えに */
    }
}

@media screen and (max-width: 768px) {
    .image-text-container {
        gap: 0.5rem;
    }
}

/*=====================================================*/
/* ヘッダーの基本スタイル */
.header {
    position: relative; /* relative に変更 */
    width: 100%;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(43, 100, 204, 0.75);
    box-shadow: 2px 2px 6px rgba(58, 58, 58, 0.3);
    z-index: 1000; /* 高い値をキープ */
}


/* ロゴ */
.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo a {
    box-sizing: inherit;
    color: #fff;
}


/* ナビゲーションメニュー */
.nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #FFD700;
}

/* ハンバーガーメニュー */
.menu-toggle {
    font-size: 2em;
    cursor: pointer;
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(43, 100, 204, 0.9);
        text-align: center;
        padding: 10px 0;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
    }

    .menu-toggle {
        display: block;
    }
}