* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

/* 言語ごとに字形を合わせる（漢字の形が日本語と繁体字で違う） */
article[lang="ja"] { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; }
article[lang="zh-Hant"] { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
article[lang="ko"] { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }

[hidden] {
    display: none !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.lang-switch a {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #FFE082;
    border-radius: 999px;
    color: #8a5a00;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.6;
}

.lang-switch a:hover {
    background-color: #FFF8E1;
    text-decoration: none;
}

.lang-switch a[aria-current="true"] {
    background-color: #FFA000;
    border-color: #FFA000;
    color: #fff;
    font-weight: 600;
}

h1 {
    color: #FFA000;
    font-size: 32px;
    margin-bottom: 10px;
    border-bottom: 3px solid #FFA000;
    padding-bottom: 10px;
}

.subtitle {
    color: #555;
    font-weight: 600;
    margin-bottom: 4px;
}

.last-updated {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.note {
    background-color: #FFF8E1;
    border-left: 4px solid #FFA000;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

h2 {
    color: #FFA000;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFE082;
}

h3 {
    color: #FFA000;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    font-size: 16px;
}

ol li {
    margin-bottom: 10px;
}

strong {
    color: #333;
    font-weight: 600;
}

a {
    color: #FFA000;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #FFA000;
}

.contact-info a {
    font-weight: 600;
}

.contact-info .hint {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-answer {
    color: #666;
}

.links {
    margin-top: 20px;
}

.links a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-weight: 600;
    color: #555;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px 16px;
    }

    .lang-switch {
        justify-content: flex-start;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p, li {
        font-size: 14px;
    }

    .faq-question {
        font-size: 16px;
    }
}
