﻿:root {
    --primary-navy: #1a2b3c;
    --kofi-blue: #29abe0;
    --success-green: #2ecc71;
    --bg-gray: #f8fafc;
    --text-main: #334155;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-gray);
    margin: 0;
}

.lang-switcher {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.lang-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

[data-lang] { display: none; }
body[data-current-lang="en"] [data-lang="en"] { display: block; }
body[data-current-lang="ja"] [data-lang="ja"] { display: block; }
body[data-current-lang="tc"] [data-lang="tc"] { display: block; }

span[data-lang] { display: none; }
body[data-current-lang="en"] span[data-lang="en"] { display: inline; }
body[data-current-lang="ja"] span[data-lang="ja"] { display: inline; }
body[data-current-lang="tc"] span[data-lang="tc"] { display: inline; }

header { text-align: center; margin-bottom: 50px; }
.logo { font-size: 2.2rem; font-weight: 800; color: var(--primary-navy); display: block; margin-bottom: 10px; }
.hero-text { color: #64748b; font-size: 1.1rem; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.card h3 { font-size: 1.25rem; color: var(--primary-navy); margin-top: 0; text-align: center; }

.card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 0.85rem;
}

.card ul li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.card ul li::before { content: "●"; font-size: 0.6rem; color: var(--kofi-blue); position: absolute; left: 0; top: 2px; }

.btn {
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: opacity 0.2s;
}

.btn-filled { background: var(--kofi-blue); color: white; }
.btn-outline { border: 2px solid var(--kofi-blue); color: var(--kofi-blue); }

.sample-links { margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 10px; text-align: center; }
.sample-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 8px; }
.sample-btn-group { display: flex; justify-content: center; gap: 15px; }
.btn-text { font-size: 0.8rem; color: var(--kofi-blue); text-decoration: underline; font-weight: 600; }

.dynamic-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.list-box { background: white; padding: 25px; border-radius: 16px; border: 1px solid var(--border-color); }
.list-box h2 { font-size: 1.1rem; margin-top: 0; }

.scroll-list { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--border-color); padding-top: 10px; }
.loading { text-align: center; color: #94a3b8; font-size: 0.85rem; padding: 20px; }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; text-decoration: none; color: var(--text-main); transition: color 0.2s; }
.list-item:hover { color: var(--kofi-blue); }
.list-item .tag { font-size: 0.7rem; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #64748b; }

.form-container { background: white; padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); }
.form-container h2 { text-align: center; margin-top: 0; }
.label-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border-color); border-radius: 8px; box-sizing: border-box; font-family: inherit; }

.checkbox-group { margin: 10px 0 20px 0; }
.checkbox-label { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    font-size: 0.85rem; 
    font-weight: normal; 
    cursor: pointer;
}
.checkbox-label input { width: auto; margin-top: 4px; }

.submit-btn { background: var(--success-green); color: white; border: none; padding: 16px; width: 100%; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1.1rem; transition: opacity 0.2s; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#msg { text-align: center; margin-top: 15px; font-weight: 600; }

@media (max-width: 850px) {
    .support-grid, .dynamic-lists { grid-template-columns: 1fr; }
}


/* ==========================================
   アンケートセクション
   ========================================== */
.survey-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.survey-container h2 {
    text-align: center;
    margin-top: 0;
}
.survey-question {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 600;
}
.survey-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.survey-option-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--text-main);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    line-height: 1.4;
    text-align: left;
}
.survey-option-btn:hover {
    border-color: var(--kofi-blue);
    color: var(--kofi-blue);
}
.survey-option-btn.selected {
    background: var(--kofi-blue);
    border-color: var(--kofi-blue);
    color: white;
    font-weight: 600;
}
.survey-submit-btn {
    background: var(--success-green);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
    transition: opacity 0.2s;
}
.survey-submit-btn:hover {
    opacity: 0.85;
}
.survey-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#surveyMsg {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    min-height: 1.4em;
}

        /* メニュー*/

        .visitor-counter {
            font-size: 0.75rem;
            color: #94a3b8;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 15px;
            opacity: 0.8;
        }
        .counter-num {
            font-weight: 600;
        }
        /* ナビゲーションメニューのスタイル */
        .sticky-nav {
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            padding: 10px 0;
            z-index: 1000;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .sticky-nav a {
            text-decoration: none;
            font-size: 0.8rem;
            font-weight: 600;
            color: #64748b;
            padding: 5px 10px;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .sticky-nav a:hover {
            background: #f1f5f9;
            color: #2563eb;
        }
        html {
            scroll-behavior: smooth;
        }