@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;800&display=swap');

/* ====================================================
   0. はみ出し・見切れ防止の最強リセット（全要素共通）
   ==================================================== */
*, *::before, *::after { box-sizing: border-box; overflow-wrap: break-word; word-wrap: break-word; }

img, iframe, video { max-width: 100%; height: auto; }

html { height: -webkit-fill-available; background-color: var(--bg-color); }

/* ====================================================
   1. 全体設定・カラーパレット（Variables & Base）
   ==================================================== */
:root {
    --bg-color: #fdfaf6;
    --card-bg: #ffffff;
    --text-main: #333333;
    --accent: #e76f51;
    --accent-red: #e76f51;
    --accent-yellow: #e9c46a;
    --accent-green: #2a9d8f;
    --accent-blue: #457b9d;
    --line-color: #cccccc;
    --border-thick: 4px solid #333333;
}

body {
    font-family: 'M PLUS Rounded 1c', 'ヒラギノ丸ゴ ProN', 'Hiragino Maru Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    min-height: -webkit-fill-available; 
    
    margin: 0;
    padding: 0;

    overscroll-behavior-y: none;

    line-height: 1.75;
    letter-spacing: 0.05em;
    word-break: auto-phrase;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-body {background-color: var(--bg-color); flex: 1 0 auto !important; padding: 130px 20px 80px; display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; }

.home-body { padding-top: 75px !important; }
.home-body .page-body { padding-top: 40px !important; }

.section-title { font-size: 32px; font-weight: 900; margin: 0; text-align: center; }
.section-subtitle { font-size: 14px; color: #666; font-weight: bold; margin: 5px 0 0 0; text-align: center; }

/* ====================================================
   2. ヘッダー＆ナビゲーション
   ==================================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: var(--card-bg); border-bottom: var(--border-thick);
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 30px; box-sizing: border-box;
    z-index: 1000; box-shadow: 0 4px 0px var(--accent-blue);
}

.hamburger { display: none; }

.header-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 26px; font-weight: 800; color: var(--text-main);
    line-height: 1.2; white-space: nowrap;
}
.logo-img { height: 45px; width: auto; object-fit: contain; }

.header-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; white-space: nowrap; }
.header-nav a { text-decoration: none; color: var(--text-main); font-weight: 800; font-size: 17px; padding: 8px 16px; border-radius: 20px; transition: all 0.2s ease; }
.header-nav a:hover { background-color: var(--accent); color: #fff; transform: translateY(-2px); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none !important; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: var(--card-bg); border: var(--border-thick); border-radius: 12px; min-width: 180px; box-shadow: 6px 6px 0px var(--accent-blue); z-index: 1001; padding: 10px 0; list-style: none; margin: 10px 0 0 0; }
.dropdown:hover .dropdown-content { display: block !important; }
.dropdown-content a { display: block; padding: 12px 20px !important; border-radius: 0 !important; text-align: center; font-size: 15px !important; }
.dropdown-content a:hover { background-color: var(--bg-color); color: var(--accent-red) !important; transform: none !important; }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-search, .header-search form { display: flex; align-items: stretch; border: 2px solid #333; border-radius: 6px; overflow: hidden; height: 38px; margin: 0; background-color: #fff; }

/* 🌟 WindowsとMacの検索バーのズレをなくすリセット魔法 */
.header-search input { 
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    box-sizing: border-box; margin: 0; vertical-align: middle; height: 100%;
    border: none; padding: 0 12px; outline: none; font-size: 14px; width: 160px; background-color: transparent; color: var(--text-main); font-family: inherit; font-weight: 500; 
}
.header-search button { 
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    box-sizing: border-box; margin: 0; vertical-align: middle; height: 100%;
    background-color: #333; color: #fff; border: none; padding: 0 15px; cursor: pointer; font-weight: bold; font-size: 14px; font-family: inherit; transition: background-color 0.2s; 
}
.header-search button:hover { background-color: #555; }

/* ====================================================
   3. メインビジュアル＆スライドショー
   ==================================================== */
.main-visual-full { flex-shrink: 0; position: relative; width: 100%; height: calc(100vh - 75px); min-height: 500px; overflow: hidden; margin: 0; padding: 0; }
.main-visual-full::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 85%, rgba(255, 255, 255, 0.9) 100%); pointer-events: none; z-index: 1; }
.slideshow { width: 100%; height: 100%; margin: 0; padding: 0; position: relative; overflow: hidden; }
.slide-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.slide { flex: 0 0 100%; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 1; }

.slide1 { background-image: url('https://images.microcms-assets.io/assets/b23f8a5a45da4b40978786cdb731ce0d/2e65341082aa4676ba61a41827917972/2.jpeg?q=100&w=1600=680&fit=crop&crop=entropy&auto=compress'); background-color: var(--accent-blue); }
.slide2 { background-image: url('https://images.microcms-assets.io/assets/b23f8a5a45da4b40978786cdb731ce0d/f5eec6c3440b4ae3809d8ec21a044afe/3.jpeg?q=100&w=1600=680&fit=crop&crop=entropy&auto=compress'); background-color: var(--accent); }
.slide3 { background-image: url('https://images.microcms-assets.io/assets/b23f8a5a45da4b40978786cdb731ce0d/0c614f0dd490448f802b92fcd683e51a/1.jpeg?q=100&w=1600=680&fit=crop&crop=entropy&auto=compress'); background-color: var(--accent-yellow); }

.main-visual-content-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; background-color: rgba(253, 250, 246, 0.9); border: var(--border-thick); border-radius: 16px; padding: 40px 50px; text-align: center; box-shadow: 8px 8px 0px var(--accent); width: 85%; max-width: 700px; line-height: 1.5; }
.catchphrase { font-size: 38px; color: var(--text-main); margin: 0 0 20px 0; font-weight: 800; }
.sub-catchphrase { font-size: 16px; font-weight: 800; margin: 0; background-color: var(--text-main); color: #ffffff; display: inline-block; padding: 8px 16px; border-radius: 8px; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background-color: var(--card-bg); border: var(--border-thick); color: var(--text-main); width: 50px; height: 50px; border-radius: 50%; font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0px var(--accent); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { transform: translateY(-50%) translate(2px, 2px); box-shadow: 2px 2px 0px var(--accent); background-color: var(--accent-blue); color: #ffffff; }
.prev-btn { left: 20px; } .next-btn { right: 20px; }

/* ====================================================
   4. 下層ページ・コンテンツ共通
   ==================================================== */
.about-section { width: 90%; max-width: 1000px; margin: 60px auto 80px; padding: 50px 60px; background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; box-shadow: 10px 10px 0px var(--accent-blue); box-sizing: border-box; }
.about-layout { display: flex; align-items: center; gap: 50px; }
.about-left, .about-right { flex: 1; }
.about-text { font-size: 17px; line-height: 2; font-weight: 500; margin: 0 0 25px 0; }
.about-btn { display: inline-block; font-size: 16px; font-weight: 800; color: #ffffff; background-color: var(--accent); padding: 12px 28px; border-radius: 30px; text-decoration: none; border: 3px solid var(--text-main); box-shadow: 4px 4px 0px var(--text-main); transition: all 0.2s ease; }
.about-btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0px var(--text-main); background-color: var(--accent-blue); }
.about-image-wrapper { width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px; margin-top: 0; }
.about-image { width: 100%; height: auto; max-height: 550px; object-fit: contain; background-color: transparent; border: var(--border-thick); border-radius: 16px; box-shadow: 8px 8px 0px var(--accent-yellow); transform: rotate(2deg); transition: transform 0.3s ease; }
.about-image:hover { transform: rotate(0deg) scale(1.02); }

.next-event-section { margin-bottom: 80px; }
.next-event-card { background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; padding: 40px 30px 30px 30px; position: relative; box-shadow: 10px 10px 0px var(--accent-green); margin-top: 40px; }
.event-badge { position: absolute; top: -25px; left: 20px; background-color: var(--accent-red); color: white; font-weight: 900; font-size: 18px; padding: 8px 25px; border: var(--border-thick); border-radius: 50px; transform: rotate(-3deg); box-shadow: 4px 4px 0px #333; }
.event-title { font-size: 24px; font-weight: 900; margin-bottom: 15px; }
.event-desc { line-height: 1.8; margin-bottom: 25px; font-weight: bold; }
.event-details { background: #f0f0f0; padding: 15px; border-radius: 10px; border-left: 10px solid var(--accent-green); }
.event-details p { margin: 5px 0; font-size: 16px; font-weight: 900; }

.voices-grid { display: flex; gap: 25px; margin-top: 30px; }
.voice-card { flex: 1; background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; padding: 30px; box-shadow: 10px 10px 0px var(--accent-yellow); }
.voice-icon { font-size: 40px; margin-bottom: 15px; }
.voice-text { font-weight: 800; line-height: 1.7; margin-bottom: 20px; font-size: 16px; }
.voice-author { font-size: 14px; color: #666; text-align: right; font-weight: 900; border-top: 2px dashed #ddd; padding-top: 10px; }

.cta-box { background-color: var(--accent-red); border: var(--border-thick); border-radius: 20px; padding: 60px 20px; text-align: center; color: white; box-shadow: 12px 12px 0px #333; }
.cta-title { font-size: 32px; font-weight: 900; margin-bottom: 15px; line-height: 1.3; }
.cta-text { font-size: 16px; font-weight: bold; margin-bottom: 40px; line-height: 1.7; }
.cta-button { display: inline-block; background-color: #ffffff; color: #333; text-decoration: none; font-size: 20px; font-weight: 900; padding: 18px 40px; border: var(--border-thick); border-radius: 60px; box-shadow: 6px 6px 0px var(--accent-yellow); transition: all 0.2s ease; }
.cta-button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0px var(--accent-yellow); }

.top-news-section { width: 100%; max-width: 800px; margin: 0 auto 80px; padding: 0 20px; box-sizing: border-box; }
.top-news-header { margin-bottom: 30px; }
.news-board { background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; padding: 40px; box-shadow: 10px 10px 0px var(--accent-blue); position: relative; }
.news-container { width: 100%; max-width: 800px; margin: 0 auto; background-color: var(--card-bg); border: var(--border-thick); border-radius: 16px; padding: 40px; box-shadow: 10px 10px 0px var(--accent-blue); box-sizing: border-box; }
.news-list, #top-news-list { list-style: none; padding: 0; margin: 0; }
.news-item { border-bottom: 2px dashed var(--line-color); padding: 20px 0; transition: all 0.3s ease; }
.news-item:last-child { border-bottom: none; }
.news-link { display: flex; align-items: center; text-decoration: none; color: var(--text-main); transition: all 0.2s ease; border-radius: 8px; }
.news-link:not(.nolink):hover { background-color: #fdfaf6; transform: translateX(10px); }
.news-meta { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.news-date { font-size: 15px; font-weight: 800; }
.news-category { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px; border: 2px solid var(--text-main); background-color: #ffffff; }
.cat-default { box-shadow: 2px 2px 0px var(--accent-blue); }
.cat-event { box-shadow: 2px 2px 0px var(--accent-yellow); }
.cat-report { box-shadow: 2px 2px 0px var(--accent-green); }
.cat-important { box-shadow: 2px 2px 0px var(--accent-red); color: var(--accent-red); }
.news-title { font-size: 16px; font-weight: 800; line-height: 1.5; flex-grow: 1; }
.news-loading, .news-error { text-align: center; padding: 40px; font-weight: 800; color: var(--accent-blue); }
.news-more-btn { display: inline-block; padding: 10px 25px; font-weight: 800; color: #333; text-decoration: none; background-color: #fdfaf6; border: 3px solid #333; border-radius: 10px; box-shadow: 4px 4px 0px var(--accent-red); transition: all 0.2s ease; }
.news-more-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--accent-red); }
.news-board-footer { text-align: right; margin-top: 30px; }

.activity-wrapper { width: 100%; max-width: 800px; margin: 0 auto 60px; display: flex; flex-direction: column; gap: 40px; padding: 0 20px; box-sizing: border-box; }
.activity-card { display: flex; flex-direction: column; background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0px var(--accent-blue); margin-bottom: 40px; height: auto; min-height: min-content; }
.activity-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0px var(--accent-blue); }
.activity-img { height: 200px; border-bottom: var(--border-thick); }
.activity-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-content { padding: 30px; display: flex; flex-direction: column; gap: 15px; width: 100%; box-sizing: border-box; }
.activity-content .button-container { display: flex; justify-content: flex-end; margin-top: auto; }
.activity-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.activity-date { font-weight: 800; }
.activity-tag { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; background-color: var(--accent-green); color: #ffffff; border: 2px solid var(--text-main); }
.activity-heading { font-size: 20px; font-weight: 900; margin: 0 0 15px 0; line-height: 1.4; }
.activity-text { font-size: 15px; line-height: 1.8; margin: 0; }

.single-article-container { background-color: var(--card-bg) !important; border: var(--border-thick) !important; border-radius: 25px !important; padding: 40px !important; box-shadow: 12px 12px 0px var(--accent-yellow) !important; max-width: 900px; margin: 40px auto; }
.article-title { font-size: 32px; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.article-main-img { width: 100%; max-width: 100%; height: auto; border: var(--border-thick); border-radius: 15px; overflow: hidden; margin: 30px 0; line-height: 0; }
.article-main-img img { width: 100%; height: auto; display: block; object-fit: contain; }
.article-body { font-size: 17px; line-height: 1.8; color: var(--text-main); }

.pdf-container { width: 100%; height: 700px; border: var(--border-thick); border-radius: 15px; overflow: hidden; margin-top: 30px; box-shadow: 8px 8px 0px var(--accent-blue); background-color: #fff; }
.pdf-container iframe { width: 100%; height: 100%; border: none; }

.page-header { text-align: center; margin-bottom: 40px; }
.page-title { font-size: 42px; margin: 0 0 10px 0; font-weight: 800; text-shadow: 3px 3px 0px var(--accent-blue); }
.page-subtitle { font-size: 16px; font-weight: 800; background-color: var(--text-main); color: #ffffff; padding: 8px 16px; border-radius: 8px; display: inline-block; margin: 0; }

.about-container, .contact-container, .schedule-container { width: 100%; max-width: 800px; background-color: var(--card-bg); border: var(--border-thick); border-radius: 16px; padding: 50px 60px; box-shadow: 10px 10px 0px var(--accent-yellow); box-sizing: border-box; }

.about-detail-section { margin-bottom: 50px; }
.detail-heading { font-size: 24px; color: var(--text-main); border-bottom: 4px dashed var(--accent-red); padding-bottom: 10px; margin: 0 0 25px 0; font-weight: 800; display: inline-block; }
.detail-text { font-size: 16px; color: var(--text-main); line-height: 2; margin: 0; font-weight: 500; }
.project-cards { display: flex; gap: 20px; margin-top: 25px; }
.project-card { flex: 1; background-color: #ffffff; border: 3px solid var(--text-main); border-radius: 16px; padding: 25px; box-shadow: 6px 6px 0px var(--accent-blue); transition: transform 0.2s ease; }
.project-card:hover { transform: translateY(-5px); }
.project-icon { font-size: 40px; margin-bottom: 15px; }
.project-card h4 { font-size: 18px; margin: 0 0 10px 0; color: var(--text-main); font-weight: 900; }
.project-card p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--text-main); font-weight: 500; }

.overview-table-section { margin-top: 60px; margin-bottom: 20px; width: 100%; }
.overview-table { width: 100%; border-collapse: separate; border-spacing: 0; background-color: var(--card-bg); border: var(--border-thick); border-radius: 16px; box-shadow: 8px 8px 0px var(--accent-blue); overflow: hidden; }
.overview-table th, .overview-table td { padding: 20px; border-bottom: 3px solid var(--text-main); font-size: 15px; text-align: left; vertical-align: middle; }
.overview-table tr:last-child th, .overview-table tr:last-child td { border-bottom: none; }
.overview-table th { width: 25%; background-color: #fdfaf6; font-weight: 800; text-align: center; white-space: nowrap; border-right: 3px solid var(--text-main); }
.overview-table td ul { margin: 0; padding-left: 20px; }
.overview-table td ul li { margin-bottom: 8px; font-weight: 500; }

.map-wrapper { margin-top: 40px; width: 100%; border: var(--border-thick); border-radius: 16px; overflow: hidden; box-shadow: 8px 8px 0px var(--accent-blue); background-color: #fdfaf6; }
.map-wrapper iframe { width: 100%; height: 450px; border: none; display: block; }

.activity-container { width: 100%; max-width: 900px; box-sizing: border-box; }
.activity-category { margin-bottom: 80px; }
.category-title { font-size: 32px; color: var(--text-main); font-weight: 800; margin: 0 0 15px 0; text-align: center; border-bottom: 4px dashed var(--accent-red); padding-bottom: 10px; }
.category-title span { display: block; font-size: 14px; color: var(--accent-red); letter-spacing: 2px; margin-bottom: 5px; }
.category-desc { text-align: center; font-size: 16px; color: var(--text-main); font-weight: 500; margin-bottom: 40px; }
.activity-container .activity-card { flex-direction: row; margin-bottom: 40px; }
.activity-container .activity-card.reverse { flex-direction: row-reverse; box-shadow: -8px 8px 0px var(--accent-yellow); }
.activity-container .activity-img { flex: 1; min-height: 250px; border-bottom: none; border-right: 4px solid var(--text-main); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; }
.activity-container .activity-card.reverse .activity-img { border-right: none; border-left: 4px solid var(--text-main); }
.activity-info { flex: 1; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.activity-info h3 { font-size: 22px; color: var(--text-main); font-weight: 800; margin: 0 0 15px 0; line-height: 1.4; }
.activity-info p { font-size: 15px; color: var(--text-main); font-weight: 500; line-height: 1.8; margin: 0; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.tag { font-size: 13px; font-weight: 800; color: var(--text-main); background-color: #ffffff; border: 2px solid var(--text-main); padding: 4px 12px; border-radius: 20px; box-shadow: 2px 2px 0px var(--accent-yellow); }
.activity-container .activity-card.reverse .tag { box-shadow: 2px 2px 0px var(--accent-blue); }
.activity-list { list-style: none; padding: 0; margin: 20px 0 0 0; border-top: 2px dashed var(--line-color); padding-top: 15px; }
.activity-list li { font-size: 14px; color: var(--text-main); line-height: 1.6; margin-bottom: 12px; padding-left: 24px; position: relative; }
.activity-list li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--accent-red); font-weight: 900; font-size: 16px; }
.activity-container .activity-card.reverse .activity-list li::before { color: var(--accent-blue); }

.yearly-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 30px; }
.month-card { background-color: #ffffff; border: 3px solid var(--text-main); border-radius: 12px; padding: 25px 20px; box-shadow: 4px 4px 0px var(--text-main); transition: transform 0.2s ease; position: relative; overflow: hidden; }
.month-card:hover { transform: translateY(-5px); }
.month-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 8px; }
.season-spring::before { background-color: #f4a261; }
.season-summer::before { background-color: var(--accent-green); }
.season-autumn::before { background-color: var(--accent-yellow); }
.season-winter::before { background-color: var(--accent-blue); }
.month-badge { display: inline-block; font-size: 24px; font-weight: 900; color: var(--text-main); border-bottom: 4px solid var(--accent-red); padding-bottom: 2px; margin-bottom: 15px; }
.season-spring .month-badge { border-color: #f4a261; }
.season-summer .month-badge { border-color: var(--accent-green); }
.season-autumn .month-badge { border-color: var(--accent-yellow); }
.season-winter .month-badge { border-color: var(--accent-blue); }
.month-card h4 { margin: 0 0 10px 0; font-size: 18px; color: var(--text-main); font-weight: 800; line-height: 1.4; }
.month-card p { margin: 0; font-size: 14px; color: var(--text-main); font-weight: 500; line-height: 1.6; }
.g-calendar-wrapper { position: relative; width: 100%; padding-bottom: 70%; border: var(--border-thick); border-radius: 12px; overflow: hidden; box-shadow: 6px 6px 0px var(--accent-blue); background-color: #fff; margin-bottom: 60px; }
.g-calendar-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.contact-container { box-shadow: 10px 10px 0px var(--accent-blue); }
.contact-text { text-align: center; font-size: 16px; font-weight: 800; line-height: 1.8; margin-bottom: 30px; }
.contact-subtext { display: block; margin-top: 10px; font-size: 14px; color: var(--accent-red); }
.g-form-wrapper { width: 100%; overflow: hidden; border-radius: 12px; border: 3px dashed var(--line-color); background-color: #fdfaf6; margin-bottom: 20px; }
.g-form-wrapper iframe { width: 100%; border: none; min-height: 800px; }

.back-home-container { text-align: center; margin: 60px 0 100px; padding-top: 40px; border-top: 2px dashed var(--line-color); }
.back-home-btn { display: inline-block; background-color: var(--card-bg); color: var(--text-main); text-decoration: none; font-weight: 900; font-size: 18px; padding: 15px 35px; border: var(--border-thick); border-radius: 50px; box-shadow: 6px 6px 0px var(--accent-yellow); transition: all 0.2s ease; }
.back-home-btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0px var(--accent-yellow); background-color: var(--bg-color); }
.back-home-btn span { margin-right: 8px; }

/* ====================================================
   8. フッター（Footer）
   ==================================================== */
.site-footer { 
    width: 100vw; margin-left: calc(50% - 50vw); background-color: #ffffff; border-top: var(--border-thick); padding: 50px 0 20px 0; margin-top: 50px; 
    flex-shrink: 0; margin-top: auto !important; margin-bottom: 0 !important; /* 🌟 フッター隙間防止用 */
}
.footer-inner { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 20px 30px; border-bottom: 2px dashed var(--line-color); box-sizing: border-box; }
.footer-logo { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.footer-address { font-size: 14px; line-height: 1.6; margin-bottom: 15px; font-weight: bold;}
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-link { text-decoration: none; color: var(--text-main); font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
.contact-link:hover { color: var(--accent-blue); }
.contact-icon { font-size: 16px; }

.footer-links { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-logo-img { height: 60px; width: auto; object-fit: contain; }
.instagram-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; background-color: white; border: 3px solid var(--text-main); border-radius: 50px; color: var(--text-main); text-decoration: none; font-weight: 900; box-shadow: 5px 5px 0px var(--accent-red); transition: all 0.2s ease; }
.instagram-link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--accent-red); color: #e1306c; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; font-weight: bold; color: #999; }
.footer-bottom p { margin: 0; padding-bottom: 20px; }

/* ====================================================
   9. 📱 スマホ・タブレット対応 (Media Queries - Responsive)
   ==================================================== */
@media (max-width: 1650px) {
    .site-header { padding: 10px 15px; }
    .header-logo { font-size: 16px; gap: 6px; }
    .logo-img { height: 30px; }
    .header-nav ul { gap: 5px; }
    .header-nav a { font-size: 13px; padding: 5px 8px; white-space: nowrap; } 
    /* 🌟 PC縮小時も検索バーの横ズレを防ぐため padding の左右を調整 */
    .header-search input { width: 110px; font-size: 12px; padding: 0 5px; }
    .header-search button { font-size: 12px; padding: 0 8px; white-space: nowrap; }
}

@media (max-width: 1250px) {
    .site-header { flex-wrap: wrap; justify-content: space-between; padding: 12px 20px; }
    .header-logo { order: 1; }
    .header-right { order: 2; }
    .header-nav { order: 3; width: 100%; display: flex; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; }
    .header-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; } 
    .header-nav a { font-size: 13px; white-space: nowrap; }
    .page-body { padding-top: 150px; }
}

@media (max-width: 768px) {
    /* =========================================
       0. 横スクロール（画面のグラグラ）完全防止
       ========================================= */
    html, body { overflow-x: hidden !important; width: 100vw !important; max-width: 100%; }
    * { word-wrap: break-word !important; overflow-wrap: break-word !important; }
    img, iframe, video { max-width: 100% !important; }

    /* =========================================
       1. ヘッダー・ハンバーガーメニュー
       ========================================= */
    .site-header { flex-direction: row; padding: 10px 15px; align-items: center; justify-content: space-between; height: 60px; border-bottom: none; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 25px; height: 18px; cursor: pointer; z-index: 1100; }
    .hamburger span { display: block; width: 100%; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
    .hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .header-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; margin: 0 10px; flex-grow: 1; line-height: 1.2; }
    .logo-img { height: 30px; }
    .header-right { display: none !important; }
    .header-nav { position: fixed; top: 0; left: -100%; width: 250px; height: 100vh; background-color: #ffffff; box-shadow: 4px 0 15px rgba(0,0,0,0.08); transition: left 0.3s ease; z-index: 1050; padding-top: 70px; overflow-y: auto; margin: 0; display: block !important; }
    .header-nav.active { left: 0; } 
    .header-nav ul { display: flex !important; flex-direction: column; gap: 0; padding: 0; margin: 0; }
    .header-nav li { display: block; width: 100%; } 
    .header-nav a { font-size: 16px; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; border-radius: 0; display: block; white-space: normal; color: var(--text-main); text-decoration: none; }
    .dropbtn { display: block !important; font-weight: bold; background-color: #ffffff; }
    .dropdown-content { position: static !important; display: block !important; transform: none !important; box-shadow: none !important; border: none !important; background-color: #fdfaf6 !important; margin: 0 !important; padding: 0 !important; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
    .dropdown.active .dropdown-content { max-height: 150px; }
    .dropdown-content a { padding: 12px 20px 12px 40px !important; font-size: 14px !important; text-align: left; border-bottom: 1px dashed #eee !important; color: #555 !important; }
    .dropdown-content li:last-child a { border-bottom: 1px solid #f0f0f0 !important; }

    /* =========================================
       2. メインビジュアル（svhフルスクリーン＆すりガラス）
       ========================================= */
    .page-body { padding-top: 150px; padding-left: 0 !important; padding-right: 0 !important; }
    .home-body { padding-top: 60px !important; } 
    .home-body .page-body { padding-top: 40px !important; }
    .main-visual-full { height: calc(100svh - 60px); min-height: 500px; }
    .main-visual-full::before { display: none; }
    .slide-wrapper { display: block; position: relative; transform: none !important; }
    .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 0; background-attachment: scroll !important; background-position: center center !important; background-size: cover !important; }
    .slide.active { opacity: 1; }
    .slider-btn { display: none !important; }
    .main-visual-content-overlay { top: auto; bottom: 30px; transform: translateX(-50%); width: 90%; max-width: 350px; padding: 25px 15px; border: none !important; border-radius: 20px !important; box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important; background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); }
    .catchphrase { font-size: 22px; margin-bottom: 12px; line-height: 1.4; }
    .sub-catchphrase { font-size: 11px; padding: 6px 10px; border-radius: 6px; }

    /* =========================================
       3. 各セクション共通（スマホ限定・幅85%のスリムなカード化）
       ========================================= */
    .about-section, .next-event-section, .top-news-section, .voices-section, .cta-box, 
    .about-container, .contact-container, .schedule-container, .activity-container,
    .article-container, .single-article-container, .detail-container, .activity-detail-container, .post-container,
    .news-container, .news-list-container, .news-archive-container {
        width: 85% !important; 
        max-width: 360px !important;
        margin: 0 auto 50px !important; 
        border-radius: 20px !important; 
        background-color: #ffffff !important;
        border: none !important; 
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important; 
        padding: 30px 20px !important;
        box-sizing: border-box;
    }

    .section-title, .page-title { font-size: 26px; text-align: center; margin-bottom: 5px; text-shadow: none; color: var(--text-main); }
    .section-subtitle, .page-subtitle { font-size: 13px; text-align: center; margin-bottom: 35px; color: #888; background: none; } 
    .page-header { margin-bottom: 25px; padding: 0 15px; }
    .detail-heading { font-size: 20px; border-bottom: 3px solid var(--accent-red); border-radius: 0; margin-bottom: 20px; display: inline-block; padding-bottom: 5px; }

    .news-board, .next-event-card { background-color: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }

    .news-item { border-bottom: 1px dashed #eee !important; padding: 20px 0 !important; }
    .news-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
    .news-link { flex-direction: column; align-items: flex-start; padding: 0; gap: 12px; }
    .news-meta { flex-direction: row; align-items: center; gap: 10px; width: 100%; }
    .cat-default, .cat-event, .cat-report, .cat-important { border: none !important; box-shadow: none !important; background-color: #f0f0f0; }
    .cat-important { background-color: #ffe8e8; color: var(--accent-red); }

    .voices-grid { flex-direction: column; gap: 0; }
    .voice-card { background: transparent !important; box-shadow: none !important; border: none !important; border-bottom: 1px dashed #eee !important; padding: 25px 0 !important; margin-bottom: 0 !important; }
    .voice-card:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
    .voice-author { border-top: none; padding-top: 15px; }

    .about-layout { flex-direction: column-reverse; gap: 25px; width: 100%; } 
    .about-image { border-radius: 12px; max-height: 220px; width: 100%; object-fit: cover; box-shadow: none; border: 1px solid #eee; transform: none; }
    .about-text, .detail-text { font-size: 15px; text-align: left; line-height: 1.8; }
    .about-btn-wrap { text-align: center; margin-top: 20px; }

    .about-btn, .cta-button, .news-more-btn { width: 100%; box-sizing: border-box; text-align: center; display: block; margin: 0 auto; border: none !important; border-radius: 50px !important; padding: 15px 20px !important; }
    .about-btn, .cta-button { background-color: var(--accent-red) !important; color: white !important; box-shadow: 0 8px 20px rgba(231, 111, 81, 0.3) !important; }
    .news-more-btn { box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; background-color: #fdfaf6 !important; border: 1px solid #eee !important; margin-top: 25px; }

    .event-badge { position: static !important; display: inline-block; margin-bottom: 15px; transform: none !important; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
    .event-details { border: none; background-color: #f8f9fa; border-radius: 12px; padding: 20px; margin-top: 20px; } 
    .cta-box { background-color: var(--accent-red) !important; color: white; padding: 50px 25px !important; box-shadow: 0 10px 30px rgba(231,111,81,0.4) !important; }
    .cta-title { font-size: 24px; margin-bottom: 15px; }
    .cta-text { font-size: 14px; margin-bottom: 30px; line-height: 1.6; }
    .cta-button { background-color: #ffffff !important; color: var(--accent-red) !important; box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; }

    /* =========================================
       4. 下層ページ（About Us等）のコンポーネント調整
       ========================================= */
    .project-cards { flex-direction: column !important; gap: 20px !important; margin-top: 20px !important; }
    .project-card { border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; border-radius: 16px !important; padding: 25px 20px !important; background-color: #fdfaf6 !important; }
    .project-card h4 { font-size: 16px; margin-bottom: 8px; }
    .project-card p { font-size: 13px; line-height: 1.6; }

    .overview-table-section { margin-top: 40px !important; margin-bottom: 0 !important; }
    .overview-table { border: none !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
    .overview-table, .overview-table tbody, .overview-table tr, .overview-table th, .overview-table td { display: block; width: 100%; box-sizing: border-box; }
    .overview-table th { background-color: transparent !important; color: var(--accent-blue) !important; border: none !important; border-bottom: 2px solid var(--accent-blue) !important; text-align: left !important; padding: 15px 5px 5px !important; font-size: 15px !important; }
    .overview-table td { padding: 10px 5px 25px !important; border: none !important; border-bottom: 1px dashed #ddd !important; font-size: 14px !important; }
    .overview-table tr:last-child td { border-bottom: none !important; }

    .map-wrapper { border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important; border-radius: 16px !important; margin-top: 30px !important; }
    .map-wrapper iframe { height: 250px !important; border-radius: 16px !important; }
    .pdf-container { height: 500px; border: none !important; box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; border-radius: 16px !important; }
    .yearly-grid { grid-template-columns: 1fr; gap: 20px; }
    .month-card { border: none !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; border-radius: 16px !important; background-color: #ffffff !important; }
    .g-calendar-wrapper { padding-bottom: 110%; margin-bottom: 40px; border: none !important; box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; border-radius: 16px !important; overflow: hidden !important; } 
    .calendar-legend {display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 15px; margin-bottom: 25px; padding: 0; list-style: none; }
    .calendar-legend li { font-size: 13px; display: flex; align-items: center; gap: 6px; background-color: #f4f6f8; padding: 6px 14px; border-radius: 20px; color: var(--text-main); font-weight: 800; }
    .legend-color {display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

    .back-home-container, .back-btn-container { border-top: none !important; padding-top: 10px !important; margin: 20px 0 50px !important; text-align: center; }
    .back-home-btn, .back-btn { border: none !important; box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important; border-radius: 50px !important; background-color: #ffffff !important; color: var(--text-main) !important; padding: 15px 30px !important; font-size: 15px !important; font-weight: 900; width: 100%; max-width: 300px; display: inline-block; box-sizing: border-box; }

    /* =========================================
       5. 記事詳細ページ（画像・本文）の調整
       ========================================= */
    .article-title { font-size: 24px !important; font-weight: 900; margin-bottom: 20px !important; line-height: 1.4; }
    .article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 25px !important; }
    .article-date { font-size: 14px; font-weight: 800; }
    .article-tag { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; border: none !important; background-color: var(--accent-green) !important; color: #ffffff !important; }
    
    .article-main-img { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; overflow: hidden !important; border-radius: 12px !important; }
    .article-container img, .single-article-container img, .detail-container img, .activity-detail-container img, .post-container img, .article-main-img img { border: 2px solid var(--text-main) !important; border-radius: 12px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; width: 100% !important; height: auto !important; margin-bottom: 20px !important; box-sizing: border-box !important; }
    
    .article-body p { font-size: 15px; line-height: 1.8; margin-bottom: 20px !important; }

    /* =========================================
       6. フッター
       ========================================= */
    .site-footer { padding: 30px 0 15px 0; margin-top: 30px; border-top: 1px solid #f0f0f0; background-color: #ffffff; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-left: 20px; padding-right: 20px; padding-bottom: 15px; border-bottom: 1px dashed #ccc; }
    .footer-logo { font-size: 17px; margin-bottom: 5px; font-weight: 900; }
    .footer-address { font-size: 12px; line-height: 1.4; margin-bottom: 5px; }
    .footer-contact { margin-top: 5px; gap: 5px; }
    .contact-link { font-size: 14px; padding: 2px 0; justify-content: center; }
    .footer-links { width: 100%; text-align: center; align-items: center; margin-top: 5px; gap: 12px; }
    .footer-logo-img { height: 40px; }
    .instagram-link { padding: 10px 20px; font-size: 14px; border: none !important; box-shadow: 0 4px 15px rgba(225, 48, 108, 0.2) !important; }
    .footer-bottom { padding-top: 10px; font-size: 11px; }
}

/* =========================================
   10. ギャラリー＆Lightbox（全画面共通設定）
   ========================================= */
.gallery-wrapper { position: relative; display: flex; align-items: center; }
.country-gallery { display: grid; grid-template-rows: repeat(2, 1fr); grid-auto-flow: column; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; -ms-overflow-style: none; scrollbar-width: none; grid-auto-columns: 42%; width: 100%; }
.country-gallery::-webkit-scrollbar { display: none; }
.country-gallery img { width: 100% !important; aspect-ratio: 1 / 1 !important; height: auto !important; object-fit: cover !important; border-radius: 8px !important; border: 1px solid #eee; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; margin: 0 !important; scroll-snap-align: start; }
.gallery-arrow { display: none !important; }

@media (min-width: 769px) {
    .country-gallery { gap: 15px; grid-auto-columns: calc((100% - 45px) / 4); max-width: 100%; margin: 0; padding: 0 40px; }
    .country-gallery img:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1; }
    .gallery-arrow { display: flex !important; align-items: center; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 35px; height: 35px; background-color: var(--text-main); color: white; border: none; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; box-shadow: 2px 2px 5px rgba(0,0,0,0.2); transition: background-color 0.2s, transform 0.2s; }
    .gallery-arrow:hover { background-color: var(--accent-red); transform: translateY(-50%) scale(1.1); }
    .gallery-arrow:active { transform: translateY(-50%) scale(0.95); }
    .prev-arrow { left: 0; }
    .next-arrow { right: 0; }
}

.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 30px rgba(255,255,255,0.2); transform: scale(0.9); transition: transform 0.3s ease; }
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2100; }

/* =========================================
   12. 画面サイズに合わせて「同じ比率」をキープする魔法のクラス
   ========================================= */
.ratio-16-9 { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; }
.ratio-4-3 { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; }
.ratio-1-1 { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; }
.ratio-3-4 { width: 100% !important; height: auto !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; }

/* =========================================
   13. スケジュール：活動種別ごとの色分け＆凡例
   ========================================= */
/* 📅 定例会 (青) */
.type-regular { border-left: 10px solid var(--accent-blue) !important; }
.type-regular .month-badge { color: var(--accent-blue); border-color: var(--accent-blue); }

/* 🧹 地域奉仕 (緑) */
.type-local-service { border-left: 10px solid var(--accent-green) !important; }
.type-local-service .month-badge { color: var(--accent-green); border-color: var(--accent-green); }

/* 🌏 国際奉仕 (オレンジ/赤) */
.type-international { border-left: 10px solid var(--accent-red) !important; }
.type-international .month-badge { color: var(--accent-red); border-color: var(--accent-red); }

/* ✨ その他・イベント (黄) */
.type-event { border-left: 10px solid var(--accent-yellow) !important; }
.type-event .month-badge { color: var(--accent-yellow); border-color: var(--accent-yellow); }

/* --- カレンダーの色分け凡例（レジェンド）PC・共通 --- */
.calendar-legend { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin: 20px 0 30px 0; padding: 0; list-style: none; }
.calendar-legend li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; background-color: #ffffff; padding: 8px 20px; border-radius: 30px; border: 2px solid var(--text-main); box-shadow: 3px 3px 0px var(--line-color); }
.legend-color { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }

/* =========================================
   14. メンバー紹介（縦並び・リスト形式バージョン）
   ========================================= */
.officers-section { margin-top: 60px; margin-bottom: 20px; }
.officers-vertical { display: flex; flex-direction: column; gap: 25px; margin-top: 30px; }
.officer-card-v { display: flex; align-items: center; gap: 30px; background-color: var(--card-bg); border: var(--border-thick); border-radius: 20px; padding: 30px 40px; box-shadow: 8px 8px 0px var(--accent-red); transition: transform 0.2s ease; }

.officer-card-v:nth-child(2) { box-shadow: 8px 8px 0px var(--accent-blue); }
.officer-card-v:nth-child(3) { box-shadow: 8px 8px 0px var(--accent-green); }

.officer-card-v:hover { transform: translateX(5px); }

.officer-img-v { width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--text-main); overflow: hidden; background-color: #fdfaf6; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.officer-img-v img { width: 100%; height: 100%; object-fit: cover; }

.officer-info-v { flex-grow: 1; text-align: left; }
.officer-info-v .officer-role { display: inline-block; font-size: 13px; font-weight: 900; color: #ffffff; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; border: 2px solid var(--text-main); }
.officer-info-v .officer-name { font-size: 22px; font-weight: 900; margin: 0 0 12px 0; }
.officer-info-v .officer-desc { font-size: 15px; line-height: 1.8; font-weight: 500; margin: 0; }


@media (max-width: 768px) {
    .officer-card-v { flex-direction: column; text-align: center; padding: 30px 20px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; border: none !important; background-color: #fdfaf6 !important; gap: 15px; }
    .officer-info-v { text-align: center; }
    .officer-card-v:hover { transform: translateY(-5px); }
}