/* 全体のリセットと背景色（画像のような薄いグレー） */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    background-color: #b5b5b5; /* 全体のグレー背景 */
}

/* 上部固定メニューバー全体 */
.navbar {
    position: fixed; /* 上部に固定するプロパティ */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* メニューの高さ */
    display: flex;
    background-color: #666666; /* メニュー右側のグレー背景 */
    z-index: 1000; /* 他の要素より常に上に表示させる */
    border-bottom: 1px solid #333;
}

/* 「◯×町内会」ロゴ部分 */
.nav-logo {
    background-color: #000000; /* 真っ黒 */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    
    /* 【変更】ロゴの文字幅をキープし、ボタンに押されても絶対に潰さない設定 */
    flex-shrink: 0; 
}

/* メニューのリンクが並ぶ部分 */
.nav-links {
    display: flex;
    height: 100%;
    
    /* 【変更】ロゴ以外の「残りの右側スペースすべて」を可変エリアにする設定 */
    flex: 1; 
}

/* (情報種別) ボタン部分 */
.nav-item {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center; /* 【追加】ボタン内の文字を中央に寄せる */
    height: 100%;
    border-right: 1px solid #333; /* 境界線 */
    background-color: #777777; /* 少し明るいグレー */
    font-size: 0.9rem;
    
    /* 【重要】ボタンが何個になっても、残りのスペースを「均等な幅」で自動山分けする設定 */
    flex: 1; 
    min-width: 0; /* 文字数が多いボタンがあっても、均等幅が崩れないようにする安全弁 */
}

/* マウスを乗せたときに少し色を変える */
.nav-item:hover {
    background-color: #555555;
}

/* 【修正】ボタンを右端まで広げるため、余白要素の引き伸ばし機能をオフにします */
.nav-empty {
    display: none;
}

/* メインコンテンツ（メニューに被らないよう上部に余白をあける） */
.content {
    margin-top: 80px; /* メニューの高さ(60px) + 余裕(20px) */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 「回覧板情報」タイトル */
.page-title {
    font-size: 2.5rem;
    font-weight: normal;
    color: #000000;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* 白いコンテンツエリア */
.info-card {
    background-color: #ffffff;
    width: 90%;
    max-width: 1000px;
    height: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden; /* 中身がはみ出さないようにする */
}

/* 【追加】iframeを白い枠全体に広げる設定 */
#contentFrame {
    width: 100%;
    height: 100%;
    display: block;
}

/* 【追加】選択されているメニューボタンのスタイル */
.nav-item.active {
    background-color: #ffffff; /* 白背景にする */
    color: #000000;            /* 文字を黒にする */
    cursor: default;           /* マウスカーソルを指マークから通常の矢印に戻す */
    pointer-events: none;      /* ボタンをクリックできなくする魔法のプロパティ */
}