/* ========== 1. Design Tokens ================================== */
:root {
    --main-color: #4b3c8a;
    --sub-color: #9f90d0;
    --bg-color: #f9f8fc;
    --text-color: #2c2c2c;
    --accent-color: #d557ab;
    --white: #ffffff;
    --gray: #e5e5f0;
    --font-jp: "Noto Sans JP", sans-serif;
}

/* ========== 2. Reset & Base =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 16px/1.75 var(--font-jp);
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 3‑A. Intro Screen ================================= */
#intro-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
    background: var(--main-color);
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease;
}

#intro-title,
#intro-subtitle {
    font-family: "Klee One", cursive;
    color: var(--bg-color);
    margin: 0;
    text-shadow: 1.5px 1.5px 0 var(--text-color), 3px 3px 10px rgba(0, 0, 0, .4);
}

#intro-title {
    font-size: clamp(3rem, 5vw + 1rem, 6rem);
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
}

#intro-subtitle {
    font-size: clamp(1rem, 1.5vw + .5rem, 1.5rem);
    font-weight: 400;
    opacity: .9;
    text-shadow: 4px 4px 10px var(--text-color);
}

/* ========== 3‑B. Header ====================================== */
header {
    margin: 0 auto;
}

header .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--main-color);
    color: var(--white);
    padding: 1rem;
    font-family: "Klee One", cursive;
}

header .inner img {
    height: 2.8rem;
    padding: 0;
    margin: 0;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
}

/* スライダー全体 */
.top-img {
    padding: 0;
    margin: 0;
    width: 100%;
    background: var(--gray);
}

/* スライダー内画像設定 */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    box-shadow: 0 0 8px var(--sub-color);
}

/* 最初の画像を表示（active未使用の既存仕様に従う） */
.hero-slider img:first-child {
    opacity: 1;
    z-index: 1;
}

/* モバイル対応 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    header .inner {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    header .inner img {
        height: 2.2rem;
    }
}

/* ========== 3‑C. Main Layout ================================= */
main {
    width: min(85%, 1000px);
    margin: 0 auto;
    padding: 1rem 1rem 3rem 1rem;
}



section {
    background: var(--white);
    padding: .3rem 2.5rem .5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .04);
    margin-bottom: 2rem;
    transition: transform .3s ease, box-shadow .3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 5px var(--sub-color);
}

@media (prefers-reduced-motion: reduce) {
    section:hover {
        transform: none;
    }
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    border-bottom: 2px solid var(--sub-color);
    padding-bottom: .4rem;
    margin-bottom: 1rem;
}

/* ========== 3‑D. News List =================================== */
.news-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: .5rem;
    scrollbar-width: thin;
    /* Firefox */
}

.news-list::-webkit-scrollbar {
    width: 6px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--sub-color);
    border-radius: 4px;
}

li {
    margin-bottom: .75rem;
    font-weight: 500;
}

li a {
    transition: color .2s;
}

li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.date {
    margin-right: .4rem;
    font-weight: 700;
    color: var(--main-color);
}

/* ========== 3‑E. Support Block =============================== */
.support-block {
    padding: .2rem 1rem;
}

.support-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.support {
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: .5rem;
}

#sponsor,
#honor {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sponsor {
    font-size: 1.4rem;
    background-image: linear-gradient(180deg, #ffec81, #b1861a);
}

#honor {
    font-size: 1.2rem;
    background-image: linear-gradient(180deg, #fff, #6f6f6f);
    margin-bottom: 0;
    padding-bottom: 0;
}

.support-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}

#honor-list {
    gap: .2rem;
    margin-top: .3rem;
}

.support-list li {
    padding: .2rem 1.2rem;
}

#sponsor-list li {
    font-size: 1.1rem;
}

#honor-list li {
    font-size: .9rem;
}

.sub-info {
    color: gray;
    font-size: 0.8rem;
    margin-bottom: .5rem;
    margin-top: 0;
    padding-top: 0;
}

/* ========== 3‑F. Footer ===================================== */
footer {
    background: var(--main-color);
    color: var(--white);
    padding: 3rem 1rem 2rem;
    font-family: var(--font-jp);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    padding-bottom: .5rem;
}

.footer-column a {
    display: inline-block;
    font-size: .95rem;
    color: var(--white);
    margin-bottom: .5rem;
    transition: color .2s;
}

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: .8rem;
    opacity: .7;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 1rem;
}


/* ========== 3‑G. Title Section =============================== */
.title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 1rem;
}

.title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--sub-color);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.title p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}





/* ========== 4. Utilities (if any) ============================ */
/* ... */

/* ========== 5. Responsive  (<768px) ========================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header .inner {
        flex-direction: row;
        /* 必須：縦並びをやめて横並びに戻す場合のみ */
        flex-wrap: nowrap;
        /* 折り返し防止 */
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        height: 3.5rem;
    }

    header h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        /* 折り返し禁止 */
        overflow: hidden;
        text-overflow: ellipsis;
        /* はみ出たら省略表示 */
        max-width: 70vw;
        /* 最大幅を画面の70%に制限 */
    }

    header .inner img {
        flex-shrink: 0;
        /* 画像が潰れないように */
        height: 2rem;
    }

    section h2 {
        font-size: 1.25rem;
    }

    .inner {
        flex-direction: column;
        text-align: center;
    }

    .support-list {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        flex-direction: column;
    }

    #map {
        height: 250px;
    }

    #intro-title {
        font-size: 3rem;
    }

    #intro-subtitle {
        font-size: 1rem;
    }

    .title h1 {
        font-size: 1.5rem;
    }

    .title p {
        font-size: 0.95rem;
    }
}


ul.events {
    list-style: disc;
    padding: 0;
    margin: 0;
}