body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

.language-selector {
    position: absolute;
    top: 15px;
    right: 20px;
}

#language-select {
    padding: 5px;
    border-radius: 4px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.home-link {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: background 0.3s;
}

.home-link:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 600px) {
    .language-selector {
        position: static;
        margin-bottom: 10px;
        text-align: right;
        padding-right: 20px;
    }
    
    .home-link {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        margin-left: 20px; /* 左端に寄せるため */
        float: left; /* 言語セレクタと逆側に配置 */
    }
    
    /* float解除のためのclearfix的な処理が必要だが、
       headerがtext-align: centerなので、構造を変えたほうが安全かもしれない。
       一旦、スマホでは左上に絶対配置のままにするか、あるいはシンプルに上部に表示するか。
       絶対配置のままでもヘッダーの高さが確保されていれば問題ないが、
       ヘッダーのpaddingが1rem 0なので、重なる可能性がある。
    */
}

@media (max-width: 600px) {
    /* 上書き */
    .home-link {
        position: static;
        display: block;
        width: fit-content;
        margin: 0 auto 10px auto; /* 中央寄せ */
    }
    .language-selector {
        text-align: center; /* 中央寄せ */
        padding-right: 0;
    }
}

header h1 {
    margin: 0;
}

main {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

section {
    background: #fff;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 5px;
}

.download {
    text-align: center;
    background: none;
    padding: 0;
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.feature-list .feature-item {
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #f4f4f4;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 3px;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
}

footer a {
    color: #fff;
}
