/* ベーススタイル */
body {
  font-family: sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0px;
}

/* ヘッダーの共通スタイル */
header {
  background: #f5f5f5;
  padding: 10px 20px; 
}

/* フッターの共通スタイル */
footer {
  background: #f5f5f5;
  padding: 10px 20px;
  text-align: center; 
}

/* ロゴ（h1）のスタイル */
header h1 {
  margin: 0;
  font-size: 1.8em;
}

/* ナビゲーションリスト（横並び） */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0; /* ロゴとの間に余白 */
  justify-content: center;
}

/* ナビゲーションリンクのスタイル */
.nav-list li a {
  text-decoration: none;
  color: #0077cc;
  padding: 4px 8px;
}

/* レスポンシブ対応：768px以下で調整 */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 15px;
  }

  header, footer {
    padding: 15px;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    text-align: center; 
  }
  
.navifit ul {
  display: flex;
  flex-wrap: nowrap;        /* 折り返し禁止 */
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;         /* はみ出し防止 */
}

.navifit li {
  margin: 0 12px;
  flex-shrink: 1;           /* テキストの縮小を許可 */
}

.navifit a {
  font-size: clamp(0.8rem, 2vw, 1.2rem); /* 画面幅に応じて縮小 */
  white-space: nowrap;                  /* テキストの折り返し防止 */
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}
  
  .telfit {
    font-size: clamp(1.8rem, 2vw + 1rem, 3.2rem); /* ←変更点 */
    white-space: nowrap;
  }
  
  .feelfit {
    font-size: clamp(1.8rem, 2vw + 1rem, 3.2rem); /* ←変更点 */
    white-space: nowrap;
  }
  
  /* ナビを縦並びに */
  .nav-list {
    flex-direction: column;
    gap: 8px;
    text-align: center; 
  }
}
