body {
    font-family: "Segoe UI", "Yu Gothic", sans-serif;
}

/* ヘッダー */
header {
    background-color: white;
    color: black;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    font-family: "Segoe UI", "Yu Gothic", sans-serif;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ddd; /* Microsoft風の細いボーダー */
}

/* ロゴ */
.logo {
    font-size: 18px;
    font-weight: bold;
    color: #262626;
}

/* ナビゲーション */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
}

nav ul li a:hover {
    color: #0067b8; /* Microsoft公式の青 */
}

/* メインコンテンツの余白調整 */
main {
    margin-top: 48px;
}

/* レスポンシブ対応（画面幅が狭くなったらナビを非表示） */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
    }
}

/* `<dialog>` のカスタムスタイル */
dialog {
    background: red;
    border: none; /* デフォルトの枠を消す */
    padding: 20px;
    border-radius: 10px; /* 角を丸くする */
    text-align: center;
    color: white; /* 文字色を白に */
    font-family: "Segoe UI", "Yu Gothic", sans-serif;
    width: 500px;
    height: 500px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* 影をつける */

position: fixed;
    inset: 0;  /* これで top: 0; left: 0; bottom: 0; right: 0; と同じ意味 */
    margin: auto; /* これで中央揃え */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

/* `<dialog>` 内のコンテンツ */
.popup-content {
    margin: 0;
}



/* 閉じるボタンのデザイン */
button {
    background: white;
    color: red;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: lightgray;
}


@media screen and (max-width: 480px) {
    dialog {
        width: 90vw; /* スマホでは横幅を90%に */
        height: 60vh; /* 高さも少し大きめに */
        max-width: none; /* `max-width` を解除 */
        max-height: none; /* `max-height` も解除 */
    }
}
