* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


header h1 {
    font-size: 6vw;
    text-align: center;
    margin: 26vw 0 21.5vw 0;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-bottom: 30vw;
    padding: 0;
}

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

/* ===== 固定時に適用されるクラス ===== */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 背景を半透明白 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 10px 0; /* 固定時の上下パディング */
}

nav.fixed ul {
    margin-bottom: 0;  /* 固定時は下の余白をなくす */
    gap: 5vw;          /* フレックスの間隔は維持 */
}

main{color: rgb(11, 11, 11);}
.ecg-logo {
    position: fixed;
    top: 10px;
    left: 10px;  /* right を left に変更 */
    z-index: 1000;
}
.ecg-logo img {
    width: 80px;
    height: auto;
}
/* 共通フォント設定 */
header h1,
header nav,
header nav ul,
header nav ul li,
header nav ul li a {
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;   /* 中央のThemaと同じ太さ */
  letter-spacing: 0.02em; /* 軽く整えると見栄えUP */
}
