body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #333;
}

/* ヘッダー */
header {
    background: #333;
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

/* 左上GitHubアイコン */
.github-return {
    position: fixed;
    top: 2px;
    left: 10px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.github-return img {
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease;
}

.github-return:hover img {
    transform: scale(1.1);
}

.github-return span {
    margin-top: -8px;
    color: black;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 6px;
}

article {
    padding: 40px;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
}

h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

h2 a {
    color: #b84500;
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
}

/* 上部に戻るアイコン設定 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 50px;
    height: 50px;

    background: #018667;
    color: white;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    font-size: 24px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.back-to-top:hover {
    opacity: 0.8;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #555;
}

/* スマートフォン向け（画面幅600px以下） */
@media (max-width: 600px) {
    header {
        padding: 20px;
    }

    .github-return img {
        width: 40px;
        height: 40px;
    }

    .github-return span {
        font-size: 8px;
    }

    .github-return {
        top: 4px;
        left: 4px;
    }

    article {
        padding: 20px;
        margin: 10px;
    }

    h2 {
        font-size: 18px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* モバイル画面の確認方法（PCのChrome）
F12 キーでDevToolsを開く
左上のスマホアイコン📱をクリック
画面上部のドロップダウンから iPhone SE や iPad を選んで確認 */