/* ==============================
   ベース設定
============================== */
* { box-sizing: border-box; }

html, body {
    background-color: #fff;
    color: #222;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ==============================
   ヘッダー & ナビゲーション
============================== */
header {
    background-color: #39FF14;
    color: #000;
    padding: 2em 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.full-width-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.5em auto;
}

.contact-info {
    max-width: 600px;
    font-size: 1.3em;
    text-align: center;
    font-weight: 600;
    line-height: 1.8;
    white-space: normal;
    margin: 0 auto 1em auto;
    flex: none;
}

.contact-info a {
    color: inherit;
    text-decoration: underline;
}

.main-nav {
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    width: 100%;
    background-color: #d0f0ff;
    border-bottom: 1px solid #b6f2a3;
    padding: 0.5em 1em;
    border-radius: 8px;
}

.main-nav li {
    margin: 0.5em 1em;
    flex: 0 1 auto;
}

.main-nav a {
    color: #008f00;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.75em 1em;
    transition: color 0.3s ease;
    touch-action: manipulation;
    display: block;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #39FF14;
}

/* ==============================
   メインコンテンツ
============================== */
.container, main, .main-links ul, .supporter-info, footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    background-color: #fff;
    padding: 0;
}

.container {
    padding: 3em 1.5em;
}

h2,
h3 {
    color: #2cb100;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.hero {
    width: 100%;
}

.hero h2 {
    font-size: clamp(2em, 6vw, 3em);
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero p {
    text-align: center;
    font-size: clamp(1.2em, 4vw, 1.8em);
    font-weight: 500;
    padding: 0 1em;
}

/* ==============================
   メインリンク（中央寄せ＆幅いっぱい＆大きい文字）
============================== */
.main-links {
    margin-top: 3em;
    text-align: center;
    width: 100%;
}

.main-links ul {
    list-style: none;
    padding: 0;
    margin: 1.5em auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-links li {
    width: 100%;
    max-width: 540px;
    margin: 0 0 1.5em 0;
    display: flex;
    justify-content: center;
}

.main-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 110px;
    font-size: 2.5em;
    font-weight: 700;
    color: #000;
    background-color: #39FF14;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    gap: 1em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5em 2em;
    box-sizing: border-box;
    text-align: center;
}

.main-links a img {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0;
}

.main-links a:hover,
.main-links a:focus {
    background-color: #b6ff7f;
}

/* ==============================
   イベント情報（タイトル・本文を大きく＆中央）
============================== */
.events {
    text-align: center;
}
.events h2 {
    font-size: 2.8em;
    font-weight: 800;
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    letter-spacing: 0.06em;
}
.events p,
.events .event-link {
    font-size: 1.4em;
    text-align: center;
}

/* イベント一覧：PCは3つ横並びで横幅いっぱい、スマホ1列 */
.event-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    justify-items: stretch;
}

.event-item {
    width: 100%;
    max-width: none;
    background: #fff;
    border: 2px solid #2cb100;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(44, 177, 0, 0.08);
    padding: 2em 1.2em;
    margin: 0;
    text-align: center;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}
.event-item:hover {
    box-shadow: 0 8px 24px rgba(44, 177, 0, 0.17);
    border-color: #39FF14;
}
.event-item h3 {
    margin: 0 0 1em 0;
    font-size: 1.5em;
    color: #2cb100;
}
.event-item p {
    margin: 0.5em 0 0 0;
    font-size: 1.2em;
}

/* ==============================
   イベント・サポーター情報
============================== */
.event-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    display: block;
    margin: 2em auto 1em auto;
    border-radius: 8px;
    background: #fff;
}

.event-link {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
}

.event-link a {
    color: #008f00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.event-link a:hover {
    color: #2cb100;
}

.supporter-info {
    background-color: #f0fff0;
    padding: 3em 1.5em;
    border-top: 1px solid #b6f2a3;
    margin-top: 3em;
}

.supporter-items {
    display: flex;
    flex-direction: column;
    gap: 2em;
    align-items: center;
    width: 100%;
}

.supporter-item {
    width: 100%;
    max-width: 600px;
    padding: 1.5em;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #caffb8;
    box-sizing: border-box;
    margin: 0 auto;
}

.supporter-image {
    width: 200px;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 0.75em;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
}

/* ==============================
   フッター
============================== */
footer {
    background-color: #39FF14;
    color: #000;
    padding: 2em 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3em;
    width: 100%;
    margin-bottom: 0;
}

/* ==============================
   レスポンシブ対応：スマホ・タブレット幅
============================== */
@media (max-width: 900px) {
    .event-container {
        grid-template-columns: 1fr !important;
        gap: 1.2em !important;
    }
    .event-item {
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    header, .container, main, .main-links ul, .supporter-info, footer, .hero {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0.5em !important;
        padding-right: 0.5em !important;
        box-sizing: border-box !important;
    }
    .main-links ul {
        align-items: stretch !important;
    }
    .main-links li, .main-links a {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 1em 0 !important;
        padding: 0 !important;
        border-radius: 14px !important;
        font-size: 1.1em !important;
        box-sizing: border-box !important;
    }
    .main-links a {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5em !important;
        padding: 1em 0 !important;
    }
    .main-links a img {
        width: 80px !important;
        max-height: 80px !important;
        margin-bottom: 0.5em !important;
    }
    .events h2 {
        font-size: 2em !important;
    }
    .events p,
    .events .event-link {
        font-size: 1.1em !important;
    }
    .event-item {
        padding: 1.2em 0.5em !important;
        max-width: 100% !important;
    }
    img, .event-image, .supporter-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto 0.5em auto !important;
        background: #fff !important;
    }
    /* カレンダー iframe */
    .google-calendar iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        height: 60vw !important;
        display: block !important;
        margin: 0 auto !important;
    }
}
.header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5em auto;
    flex-wrap: nowrap;
}
.header-content {
    width: auto;
    min-width: 200px;
}
.contact-info {
    text-align: left;
}

/* スマホ・タブレット時は縦並び */
@media (max-width: 900px) {
    .header-row {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-bottom: 1em;
    }
    .contact-info {
        text-align: center;
    }
}
.hero img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;    /* お好みで余白 */
    margin-bottom: 2em; /* お好みで余白 */
    max-width: 100%;
    height: auto;
    border-radius: 12px; /* 角丸もお好みで */
}