body {
    font-family: sans-serif;
    background-color: #f0f8ff;
    text-align: center;
    padding: 2em;
}

a{
    text-decoration: none;
    color: inherit;
}

.main-header{
    background-color: black;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.site-title {
    font-size: 1.5em;
    font-weight: bold;
}

/* ハンバーガーメニューのボタン */
.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* スライドしてくるナビゲーションメニュー */
.slide-nav {
    position: fixed;
    top: 0;
    right: -280px; /* 初期状態では画面の外に隠す */
    width: 250px;
    height: 100%;
    background-color: #222;
    color: white;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    transition: right 0.3s ease-in-out;
    z-index: 999;
}
.slide-nav.open {
    right: 0; /* 'open'クラスが付くと右からスライドイン */
}
.slide-nav ul {
    list-style: none;
    padding: 60px 0 0 0;
    margin: 0;
}
.slide-nav ul li {
    padding: 15px 10px;
    border-bottom: 1px solid #444;
}
.slide-nav ul li a {
    font-size: 1.2em;
}

/* body部分（メインコンテンツ） */
main {
    padding-top: 60px; /* 固定ヘッダー分のスペースを確保 */
}
.banner-container {
    padding: 20px;
    display: grid;
    /* スマホ（初期状態）は1列 */
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    color: white;
    transition: transform 0.3s ease; /* ホバー時の動きを追加 */
}

/* ホバー時に少し浮き上がる演出 */
.info-banner:hover {
    transform: translateY(-5px);
}

.info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.info-banner h2 {
    font-size: 1.5em; /* 3つ並ぶので少しサイズを調整 */
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    padding: 0 10px;
}

/* PC用設定: 画面幅が768px以上の場合に適用
   (一般的なタブレット・PCサイズ)
*/
@media (min-width: 768px) {
    .banner-container {
        /* PCでは均等に3列並べる */
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .info-banner {
        height: 300px; /* PCでは少し高さを出す */
    }

    .info-banner h2 {
        font-size: 1.8em;
    }
}

/* テーブルのデザインを少し整える */
.data-table {
    width: 100%;
    border-collapse: collapse; /* セルの境界線を結合 */
    margin-top: 1.5em;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.data-table th {
    background-color: #f2f2f2;
}
.data-table tr:nth-child(even){background-color: #f9f9f9;} /* 偶数行の色 */

/* 体重の前日比の文字色 */
.diff-plus { color: #d9534f; } /* 赤色 (増加) */
.diff-minus { color: #5cb85c; } /* 緑色 (減少) */