body {
    background-color: #f0f8ff; /* 薄い青色 */
    font-family: sans-serif;
    text-align: center;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}

h1 {
    color: #0056b3;
}
.hamburger {
    display: none;
}
.menu-content {
    display: flex;
    justify-content: center;
    width: 100%;
}
.menu {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px; 
}
.toppagePhoto{
    width: 100%;
}
.toppagePhoto img{
    width: 100%;
}
.TopLogoWrapper {
    background-color: #3300CC;
    display: flex;             
    justify-content: center;   
    align-items: center;  
    padding: 10px 0 10px 0;    
    width: 100%; 
    border: solid 0px black;       
}
.TopLogo {
    width: 25%; 
    height: auto;
}
.TopLogo1{
    display: none;
}
.snsIcon_box{
    width: auto;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 10px;
    display: flex;
    border: solid 0px white;
}
.snsIcon_box a {
    width: fit-content;
}
.snsIcon{
    margin:2px 0 0 0;
    width: 47px;
}
.snsIcon1{
    width: 50px;
}
.link{
    position: absolute;
    right: 20px;
    top: 70px;
    color: white;
    font-size: 19px;
    font-weight: bold;
}
.link:hover{
    text-decoration: underline;
}
.menu {
    height: auto;
    background-color: #3300CC;
    display: flex;
    justify-content: center;  
    position: sticky; 
    top: 0;          
    z-index: 1000;
}
.menuItem{
    display: block;
    width: 14%;
    font-size: 19px;
    font-weight: bold;
    color: white;
    border-right: 1px solid white;
    margin: 10px 0 10px 0;
    padding: 5px auto 5px auto;
    text-decoration: none;
}
.menuItem:hover{
    text-decoration: underline;
}
.menuItem1{
    display: block;
    width: 14%;
    font-size: 19px;
    font-weight: bold;
    color: white;
    border-left: 1px solid white;
    border-right: 1px solid white;
    margin: 10px 0 10px 0;
    padding: 5px auto 5px auto;
    text-decoration: none;
}
.menuItem1:hover{
    text-decoration: underline;
}
.menuItem2{
    display: none;
    width: 14%;
    font-size: 19px;
    font-weight: bold;
    color: white;
    border-right: 1px solid white;
    margin: 10px 0 10px 0;
    padding: 5px auto 5px auto;
    text-decoration: none;
}


.top_container{
    display: flex;
    width: 100%; 
}
.top_container1{
    width: 28%;
    border: solid 0px black;
}
.top_container1_content{
    width: 90%;
    margin: 10px auto;
    border-radius: 8px;
    border: solid 2px #3300CC;
}
.top_container1_content_title{
    display: block;
    padding: 10px 0 10px 0;
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: bold;
    border-bottom: #3300CC 2px solid;
}
.top_container1_content_title1{
    width: fit-content;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 10px auto 0 25%;
    color: white;
    background-color: #3300CC;
}
.top_container1_content_item{
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 5px auto 15px auto;
}
.top_container1_content_item1{
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 5px auto 15px auto;
    color: gray;
    text-decoration: none;
}
.top_container1_content_item1:hover{
    text-decoration: underline;
}
.slideshow-container {
    width: 70%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    margin: 10px auto auto 10px;
    border-radius: 12px;
}
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    border-radius: 12px;
}
.slide-img.active {
    opacity: 1;
}


.calendar-section{
    margin: 50px 0 0 0 ;
}
.calendar {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed; 
    margin: 0 auto 0 auto;
}
.calendar th.month {
    font-size: 1.5rem;
    padding: 10px;
    background-color: #3300CC; 
    color: white;
    text-align: center;
}
.calendar th {
    background-color: #eee;
    padding: 5px;
    border: 1px solid #ccc;
    text-align: center;
}
.calendar td {
    height: 100px; 
    vertical-align: top;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: white;
}
.date {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.calendar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.calendar th.sat {
    color: blue;
    background-color: #e6f0ff; 
}
.calendar th.sun {
    color: red;
    background-color: #ffe6e6; 
}
.calendar td.sat .date {
    color: blue;
}
.calendar td.sat {
    background-color: #fbfdff; 
}
.calendar td.sun .date {
    color: red;
}
.calendar td.sun {
    background-color: #fffbfb; 
}
.event-link {
    display: block;         
    background-color: #e6f0ff;
    color: #3300CC;
    
    font-size: 0.8rem;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    
    white-space: nowrap;     
    overflow: hidden;        
    text-overflow: ellipsis;
    
    cursor: pointer;        
}
.event-link:hover {
    text-decoration: underline;
    background-color: #b1d0ff;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px; 
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover {
    color: black;
}
.btn{
    display: inline-block;
    border: solid 1.5px black;
    border-radius: 8px;
    padding: 2px 2px 2px 2px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}
.btn1{
    display: inline-block;
    padding: 2px 2px 2px 2px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn2{
    display: inline-block;
    padding: 2px 2px 2px 2px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn:hover .btn1{
    transform: translateX(5px);
}
.btn:hover .btn2{
    transform: translateX(-5px);
}

/* result.html */
.result-title{
    font-size: 20px;
    font-weight: bold;
    margin: 0 10px 0 10px;
}
.result-card{
    width: 60%;
    border: gray 1px solid;
    border-radius: 10px;
    margin: 10px auto;
    padding: 10px 0px;
    background-color: white;
}
.tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}
.tab-btn {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    transition: 0.3s;
    border-bottom: 4px solid transparent; 
}
.tab-btn:hover {
    color: #3300CC;
}
.tab-btn.active {
    color: #3300CC;
    border-bottom: 4px solid #3300CC; 
}
.tab-content {
    animation: fadeEffect 0.5s;
}
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}


/* 大会結果 */
.match_title{
    font-size: 26px;
    font-weight: bold;
    margin: 10px 0 0px 0;

}
.league-table-container{
    margin-top: 20px; 
    overflow-x: auto;
}
.delete-table-btn{
    background:#ffcccc; 
    border:none; 
    padding:5px 10px; 
    cursor:pointer; 
    border-radius:4px;
    font-size: 14px;
}
/* 大会結果END */


/* メンバー紹介 */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; 
}
.member-card {
    width: calc(33.333% - 20px); 
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    padding-bottom: 15px;
}
.member-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
}
.member-info {
    padding: 10px;
}

.member-name {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.member-detail {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.member_label {
    font-weight: bold;
    color: #3300CC;
    margin-right: 5px;
}
/* メンバー紹介END */

/* 掲示板 */
.board-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid #ddd;
}
.board-form-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}
.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: left;
    margin-left: 10px;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 16px; 
    background-color: #fff;
}
.form-control:focus {
    border-color: #3300CC;
    outline: none;
}
.btn-submit {
    background: #3300CC;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 30px; /* 丸みをつける */
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s;
}
.btn-submit:hover {
    opacity: 0.8;
}
.form-footer {
    text-align: right;
}
.board-section-title {
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.board-card {
    border: 1px solid #eee;
    background-color: white;
    padding: 20px 0;
    margin-bottom: 10px;
}
.board-card:last-child {
    border-bottom: none;
}
.board-header {
    margin-bottom: 10px;
    text-align: left;
    margin-left: 10px;
}

.board-post-title {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}
.board-date {
    font-size: 0.8rem;
    color: #888;
}
.board-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
    margin-left: 10px;

}
.board-content {
    white-space: pre-wrap; 
    line-height: 1.6;
    color: #333;
    text-align: left;
    margin-left: 10px;
}
/* 掲示板END */


/* 私たちについて */
.container_about{
    width: 100%;
}
.about_text{
    font-size: 24px;
    margin: 20px 0 20px 0;
    font-weight: bold;
    color: #3300CC;
}
.about_text1{
    font-size: 24px;
    margin: 20px 0 20px 0;
    font-weight: bold;
    color: #3300CC;
    padding-bottom: 20px;
    border-bottom: #ddd solid 2px;
}
.about_break{
    display: none;
}
/* 私たちについてEND */

/* リンク集 */
.link_title{
    width: 800px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #3300CC;
    margin: 40px auto 10px auto;
    border: solid 1.5px #3300CC;
}
.link_item{
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin: 10px 0 0 0;
}
.link_item:hover{
    text-decoration: underline;
}
.link_container{
    display: flex;
    gap: 20px;
    width: 800px;
    margin: 0 auto 0 auto;

}
.link_container1{
    width: 360px;
}
/* リンク集END */
.footer{
    margin: 40px 0 0 0 ;
    padding: 20px 0 20px 0;
    background-color: #3300CC;
    color: white;
}
.footer_break{
    display: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 480px) {
    body {
        padding-top: 50px; 
    }
    
    /* --- 1. ヘッダー全体を横並びにする --- */
    .TopLogoWrapper {
        display: flex;
        align-items: center;       /* 上下中央揃え */
        justify-content: space-between; /* 左(ロゴ)と右(SNS+ハンバーガー)に離す */
        padding: 5px;
        position: fixed;         /* 画面に固定する */
        top: 0;                  /* 一番上 */
        left: 0;                 /* 一番左 */
        width: 100%;             /* 横幅いっぱい */
        z-index: 3000;          
        height: 40px;
    }
    .snsIcon_box {
        position: static; /* 固定位置を解除 */
        width: auto;      /* 幅を自動に */
        border: none;     /* 確認用の枠があれば消す */
        margin-left: auto; /* ロゴとの間を空けて右に寄せる */
        margin-right: 15px; /* ハンバーガーとの隙間 */
        gap: 10px;        /* アイコン同士の隙間 */
    }
    .link{
        display: none;
        position: absolute;
        right: 20px;
        top: 70px;
        color: white;
        font-size: 19px;
        font-weight: bold;
    }
    .hamburger {
        display: flex; /* 表示する */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 2001;
        margin-right: 20px;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: white; 
        border-radius: 2px;
        transition: all 0.3s;
        transform-origin: center;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .menu {
        padding: 0; 
        width: 100%;
    }
    .menu-content {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0; 
        left: 0;
        width: 100%;
        background-color: #2d3c5c;
        z-index: 1000;
        opacity: 0.9;

        max-height: 0;           /* 最初は高さを0にして隠す */
        overflow: hidden;        /* 枠からはみ出た中身を見えなくする */
        opacity: 0;              /* 透明にしておく */
        transition: all 0.4s ease-out;
        height: 100vh;
    }
    .menu-content.open {
        max-height: 100vh;       
        height: 100vh;           
        
        opacity: 0.9;    
        overflow-y: auto;
    }
    .menuItem{
        width: 80%;
        font-size: 19px;
        border-right: 0px solid white;
        margin: 10px auto 10px auto;
        padding: 5px auto 5px auto;
        text-decoration: none;
    }
    .menuItem1{
        width: 80%;
        font-size: 19px;
        border-left: 0px solid white;
        border-right: 0px solid white;
        margin: 10px auto 10px auto;
        padding: 5px auto 5px auto;
        text-decoration: none;
    }
    .menuItem2{
        display: block;
        width: 80%;
        font-size: 19px;
        border-right: 0px solid white;
        margin: 10px auto 10px auto;
        padding: 5px auto 5px auto;
        text-decoration: none;
    }
    .TopLogo {
        display: none;
    }
    .TopLogo1 {
        display: block;
        width: 140px;
    }
    .snsIcon{
        margin:4px 0 0 0;
        width: 25px;
    }
    .snsIcon1{
        margin:2px 0 0 0;
        width: 29px;
    }
    .top_container{
        display: block;
    }
    .slideshow-container {
        width: 100%;
        aspect-ratio: 16/9;
        position: relative;
        overflow: hidden;
        margin: 0px auto auto 0px;
        border-radius: 0px;
    }
    .slide-img {
        border-radius: 0px;
    }
    .top_container1{
        width: 100%;
        border: solid 0px black;
    }
    .top_container1_content_title1{
        font-size: 14px;
    }
    .top_container1_content_title{
        display: block;
        padding: 5px 0 5px 0;
        margin: 0 0 5px 0;
        font-size: 20px;
        font-weight: bold;
        border-bottom: #3300CC 2px solid;
    }
    .top_container1_content_item{
        font-size: 18px;
        margin: 7px auto 7px auto;
    }
    .top_container1_content_item1{
        font-size: 18px;
    }
    .calendar {
        width: 90%;
        border-collapse: collapse;
        margin-top: 20px;
        table-layout: fixed; 
        margin: 0 auto 0 auto;
    }
    .calendar th.month {
        font-size: 1.2rem;
        padding: 5px;
        background-color: #3300CC; 
        color: white;
        text-align: center;
    }
    .calendar td {
        height: 60px; 
        vertical-align: top;
        border: 1px solid #ccc;
        padding: 5px;
        background-color: white;
    }

    /* 大会結果 */
    .match_title{
        font-size: 22px;
        font-weight: bold;
        margin: 8px 0 0px 0;

    }
    .league-table-container{
        margin-top: 10px;
    }
    .responsive-table {
        font-size: 11px; 
    }
    .responsive-table th, 
    .responsive-table td {
        padding: 4px 2px !important; 
        white-space: normal;       
        word-break: break-all;    
        min-width: 30px;           
    }
    .responsive-table th {
        font-size: 10px; 
    }
    .container {
        padding: 10px !important;
    }
    div[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch !important; 
        gap: 10px;
    }
    
    #teamCount {
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px;
        font-size: 16px; 
    }
    #detailTable, .detail-block table {
        display: block;
        width: 100%;
        overflow-x: auto; 
        white-space: nowrap; 
    }
    .team-name, .score-input, .detail-input, .header-input {
        min-width: 80px;
        font-size: 12px;
        padding: 8px !important;
    }
    button[onclick*="remove"] {
        padding: 5px !important;
        font-size: 12px;
    }
    .result-card{
        width: 90%;
        margin: 5px auto;
    }

    /* メンバー紹介 */
    .member-grid {
        display: block;
        flex-wrap: wrap;
    }
    .member-card {
        display: flex;
        width: 95%; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding-bottom: 5px;
        margin: 0 auto 10px auto;
    }
    .member-img-box {
        width: 40%;
        aspect-ratio: 4 / 3;
        background-color: #f9f9f9;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .member-img-box img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        object-position: center;
    }
    .member-grid {
        gap: 10px;
        justify-content: flex-start; 
    }
    .member-info {
        padding: 5px;
        margin: 0 auto 0 auto;
    }
    .member-name {
        margin: 3px 0;
        font-size: 16px;
        color: #333;
    }

    .member-detail {
        margin: 3px 0;
        font-size: 11px;
        color: #666;
    }
    .member_label {
        font-size: 14px;
        margin: 5px 0 0 0;
    }
    /* メンバー紹介END */
    /* 掲示板 */
    .board-header {
        flex-direction: column; 
        align-items: flex-start;
        gap: 5px;
    }

    .board-date {
        align-self: flex-end; 
    }
    
    .btn-submit {
        width: 100%; 
    }
    /* 掲示板END */
    /* 私たちについて */
    .about_text{
        font-size: 16px;
    }
    .about_text1{
        font-size: 16px;
    }
    .about_text2{
        font-size: 12px;
    }
    .about_break{
        display: block;
    }
    /* 私たちについてEND */
    /* リンク集 */
    .link_title{
        width: 300px;
        font-size: 22px;
        margin: 35px auto 10px auto;
        border: solid 1.5px #3300CC;
    }
    .link_item{
        font-size: 12px;
        margin: 10px 0 0 0;
    }
    .link_container{
        gap: 10px;
        width: 300px;
    }
    .link_container1{
        width: 140px;
    }
    /* リンク集END */
    .footer{
        font-size: 12px;
    }
    .footer_break{
        display: block;
    }

}
