body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 20px; /* 左右にもパディングを追加 */
    text-align: center;
}

.header-content {
    max-width: 1200px; /* ヘッダー内容の最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    display: flex;
    justify-content: space-between; /* タイトルとリンクを左右に配置 */
    align-items: center; /* 垂直方向中央揃え */
}

header h1 {
    margin: 0;
    font-size: 1.5em; /* 見出しサイズ調整 */
}

.social-links {
    display: flex;
    gap: 15px; /* リンク間のスペース */
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex; /* アイコンとテキストを横並び */
    align-items: center; /* 垂直方向中央揃え */
    gap: 5px; /* アイコンとテキストの間隔 */
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8; /* ホバー効果 */
}

.social-links i {
    font-size: 1.2em; /* アイコンサイズ */
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tool-list h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tool-list ul {
    list-style: none;
    padding: 0;
}

.tool-list li {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.tool-list li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-list a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.tool-list h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #007bff;
}

.tool-list p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #555;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #777;
    font-size: 0.9em;
}

/* レスポンシブ対応（画面幅が狭い場合） */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column; /* 縦並びにする */
        gap: 10px; /* 要素間のスペース */
    }

    .social-links {
        justify-content: center; /* リンクを中央揃え */
    }
}