/* ==========================
   共通設定
========================== */

body {
    margin: 0;
    padding: 0;
    font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
    background-color: #f3f5f7;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================
   ヘッダー
========================== */

.site-header {
    background: #005db8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.global-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.global-nav li {
    margin: 0;
}

.global-nav a {
    display: block;
    color: white;
    font-weight: bold;
    padding: 18px 30px;
    transition: 0.2s;
}

.global-nav a:hover {
    background: #1976d2;
}

.site-title {

    color: white;

    font-size: 1rem;

    font-weight: bold;

    padding: 4px 12px;

    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ==========================
   メインエリア
========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ==========================
   バナーロゴ
========================== */

.banner {
    margin-bottom: 40px;
}

.banner img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* ==========================
   アイコンメニュー
========================== */

.menu-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.menu-card img {
    width: 220px;
    transition: 0.2s;
}

.menu-card:hover img {
    transform: translateY(-8px);
}

/* ==========================
   トップページカード
========================== */

.info-cards{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(300px,1fr));

    gap:25px;

    margin-top:40px;
}

.info-card{

    background:#fff;

    border-radius:15px;

    padding:25px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.08);
}

.info-card h2{

    margin-top:0;

    color:#005db8;

    border-bottom:
        2px solid #eaeaea;

    padding-bottom:10px;
}

.info-card ul{

    margin:0;
    padding-left:20px;
}

.info-card li{

    margin-bottom:10px;
}

.info-card a{

    display:inline-block;

    margin-top:15px;

    color:#005db8;

    font-weight:bold;
}

/* ==========================
   お知らせ
========================== */

.news-box {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.news-box h2 {
    margin-top: 0;
    color: #005db8;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.news-box ul {
    padding-left: 20px;
}

.news-box li {
    margin-bottom: 12px;
}

/* ==========================
   大会
========================== */

.taikai-table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;
}

.taikai-table th{

    background:#20406b;

    color:white;

    padding:14px;
}

.taikai-table td{

    padding:12px;

    border:1px solid #d9d9d9;
}

.taikai-table tr:nth-child(even){

    background:#f8f9fb;
}

.taikai-table tr:hover{

    background:#eef5ff;
}

/* ==========================
   フッター
========================== */

footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: #005db8;
    color: white;
}

/* ==========================
   大会年
========================== */

.year-title {

    margin-top: 30px;

    margin-bottom: 10px;

    padding-left: 10px;

    border-left: 6px solid #005db8;

    color: #005db8;

    font-size: 1.4rem;

    font-weight: bold;
}

/* ==========================
   スマホ対応
========================== */

@media screen and (max-width: 768px) {

    /* ヘッダー */

    .global-nav ul {

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 0;

        margin: 0;

        padding: 0;

        list-style: none;
    }

    .global-nav li {

        margin: 0;
    }

    .global-nav a {

        display: block;

        text-align: center;

        color: white;

        font-size: 0.9rem;

        font-weight: bold;

        padding: 12px 0;

        line-height: 1;

        white-space: nowrap;
    }

.site-title {

    font-size: 0.9rem;

    padding: 3px 10px;

    text-align: center;
}

    /* メイン */

    .container {

        padding: 15px;
    }

    /* バナー */

    .banner {

        margin-bottom: 20px;
    }

    /* アイコン */

    .menu-grid {

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 5px;

        margin: 15px 0 25px 0;
    }

    .menu-card {

        display: flex;

        justify-content: center;
    }

    .menu-card img {

        width: 130px;

        max-width: 130px;

        height: auto;
    }

    /* お知らせ */

    .news-box {

        padding: 20px;
    }

    .news-box h2 {

        font-size: 1.5rem;
    }

    .news-date {

        display: block;

        width: auto;

        margin-bottom: 4px;
    }

    /* テーブル */

    .taikai-table {

        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    /* 大会年 */

    .year-title{

        font-size:1.2rem;

        margin-top:20px;
    }

}