body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f6f2ef;
    margin: 0;
    padding: 0;
    
    /* フッターを常に一番下に配置 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダー（元のサイトと統一） */
header {
    width: 100%;
    text-align: center;
    margin-top: 50px; /* `top-header` の高さ + 余白分 */
    margin-bottom: 20px;  /* 既存の余白 +40px */
}


header img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

    /* PCでの最大サイズを制限 */
    max-height: 166px;

}




/* メインコンテンツ */
main {
    flex-grow: 1;
}




/* スマホ用のテキストは非表示（PCでは表示） */
.mobile-text {
    display: none;
}


/* PC用のテキストはデフォルトで表示 */
.pc-text {
    display: block;
}





/* 便利ツール一覧のタイトル */
.tools-title {
    text-align: center;
    font-size: 20px;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    margin-top: 10px;  /* 上側の余白を追加 */
    margin-bottom: 0px;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
}

/* スタイリッシュなアンダーライン（中央に短いラインを追加） */
.tools-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 1.5px;  /* 線の太さを細くする */
    background-color: #ff6600;
    margin: 4px auto 0;
    border-radius: 2px;
}

/* テキストにグラデーション（モダンな雰囲気をプラス） */
.tools-title span {
    background: linear-gradient(to right, #ff8c00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}






/* 便利ツール一覧 */
.tools-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1px;
    gap: 20px;
    width: 80%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px; /* ボタンと更新履歴の間の余白を増やす */

}


/* ツールカードのデザイン */
.tool-card {
    width: 100%;
    background: linear-gradient(135deg, #ffffff, #f9f9f9); /* グラデーションで高級感 */
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd; /* 薄い枠線で上品に */
}

/* ホバー時のエフェクト */
.tool-card:hover {
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* ちょっと浮かせる */
    background: linear-gradient(135deg, #ff8c00, #ff6600); /* ホバー時にオレンジグラデーション */
    color: white; /* 文字を白く */
}

/* ツールカード内の画像 */
.tool-card img {
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    margin-top: 1px;
    margin-bottom: 1px; /* ここを追加（余白を少なく） */
}

/* ホバー時に画像も少しズーム */
.tool-card:hover img {
    transform: scale(1.05);
}

/* ツールカードのタイトル */
.tool-card h2 {
    font-size: 18px;
    margin-top: 1px;
    margin-bottom: 1px;
    font-weight: 550;
    color: #807f75; /* 文字の色 */
    transition: all 0.3s ease-in-out;
}

/* ホバー時のタイトルカラー変更 */
.tool-card:hover h2 {
    color: white;
}





/* 更新履歴セクション */
.update-history {
    width: 80%;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    
    /* 高さを制限し、リスト部分のみスクロール */
    max-height: 150px;  /* 必要に応じて調整 */
    display: flex;
    flex-direction: column;
}

/* 更新履歴の見出し */
.update-history h2 {
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #ff6600;
    padding-bottom: 5px;  /* 線との距離を縮める */
    margin-top: 5px;  /* 上の余白を少なく（デフォルトより縮める） */
    margin-bottom: 5px;  /* 下の余白を小さくする */
    flex-shrink: 0;  /* 固定 */
    /* 文字を細く */
    font-weight: 400;  /* 300 〜 400 が適度に細くなる */
}

/* 更新履歴のリストをスクロール可能に */
.update-history ul {
    list-style: none;
    padding: 0;
    
    /* スクロールできるように設定 */
    overflow-y: auto;
    max-height: 180px;  /* 必要に応じて調整 */
    padding-right: 10px; /* スクロールバーによる横ズレ対策 */
    margin-bottom: 5px;  /* 下の余白を少なくする */
    margin-top: 5px;  /* 上の余白を少なく（デフォルトより縮める） */
}

/* 更新履歴のリストアイテム */
.update-history li {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}










/* フッター（ページ下部に固定） */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin-top: auto;
}

.footer-links {
    margin-bottom: 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ff6600;
}

.copyright {
    margin: 0;
    font-size: 12px;
}










/* 新しいヘッダー（フッターと同じデザイン） */
.top-header {
    position: fixed;  /* 画面の上部に固定 */
    top: 0;           /* 上端に配置 */
    left: 0;          /* 左端に配置 */
    width: 100%;      /* 横幅を100%にする */
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    font-size: 14px;
    z-index: 1000;    /* 他の要素より前面に表示 */
}


/* 左側のロゴ＋サイト名 */
.header-left {
    display: flex;
    align-items: center;
}

/* ロゴとテキストを横並び */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* リンクの下線を消す */
    color: white; /* テキストを白に */
}

/* ロゴ画像 */
.logo-container img {
    height: 30px; /* ロゴの高さ（調整可） */
    width: auto;
    display: block;
}

/* サイト名（ロゴの隣のテキスト） */
.site-title {
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px; /* ロゴとの間隔 */
}

/* 右側のメニューボタン */
.header-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ボタンを右端に寄せすぎない */
    margin-right: 10px; /* 右側に余白を確保 */
}

/* メニューボタン */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px; /* ボタン内の余白を調整 */
    margin-right: 20px; /* 右側の余白を追加 */
    transition: 0.3s;
}

.menu-button:hover {
    color: #ff6600;
}






/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 20px; /* 右端ギリギリではなく、少しだけ余白を確保 */
    top: 35px;
    min-width: 250px; /* メニューの幅を適切に確保 */
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

/* メニューのリンク */
.dropdown-menu a {
    display: block;
    padding: 12px 15px; /*  内側の余白を広げて、ゆとりを持たせる */
    font-size: 14px; /*  文字サイズを少し大きく */
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    text-align: left; /* 左揃えに変更 */
}

.dropdown-menu a:hover {
    background: #ff6600;
    color: white;
}





















/* スマホではヘッダー画像の高さを小さく */
@media (max-width: 600px) {
    header {
        margin-bottom: 5px;
    }



    header img {
        max-height: 200px;
    }




    .pc-text {
        display: none; /* PC用のテキストを非表示 */
    }


    .mobile-text {
        display: block; /* スマホ用のテキストを表示 */
    }




    .tools-title {
        font-size: 15px;
        margin-top: 1px;
        margin-bottom: 0px;
    }


    }
    
    .tools-title::after {
        width: 40px;
    }


    .tools-container {
        width: 80%;
        max-width: 500px; /* 必要なら最大幅を制限 */
    }

    .tool-card {
        padding: 12px;
    }

    .tool-card h2 {
        font-size: 14px;
    }


    .tool-card p {
        font-size: 13px;
    }



    .update-history {
        width: 80%; /* 80% → 90% に変更し、少し狭める */
        padding: 15px; /* スマホでは少し余白を減らす */
    }






    footer {
        padding: 6px 0;
        font-size: 12px;
    }
}
