body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}

/* ヘッダー */
header {
  background: #111;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

/* ナビゲーション */
.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* ロゴ */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  gap: 0.5rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: bold;
}

/* ハンバーガー */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
}

/* ヒーローエリア */
.hero {
  background: linear-gradient(to right, #202020, #303030);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* カード一覧 */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex: 1 1 300px;
  max-width: 350px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
}

/* フッター */
footer {
  background: transparent; /* ← 黒背景を無効にする */
  padding: 0;
  margin: 0;
}


/* ボタン */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #2020aa;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #3030cc;
}

/* レスポンシブ */
@media (max-width: 768px) {
  header {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: 1rem;
    padding-left: 1rem;
    position: relative;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #222;
    border-top: 1px solid #444;
    z-index: 1000;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 1rem;
    border-top: 1px solid #444;
    color: #fff;
  }
}
/* ==== フッターナビゲーション ==== */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  background: #111;
  border-top: 1px solid #444;
}

.bottom-nav a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  flex: 1;
  text-align: center;
}

/* ==== コピーライト部分 ==== */
.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  padding: 0.5rem 0 1rem;
  background: #111;
}
/* ========= Bottom Navigation (Mobile Floating Style) ========= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #111;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  padding: 0;
  font-size: 1.4rem;
  border-top: 1px solid #333;
  line-height: 56px; /* ← 高さと一致させて中央寄せ */
}

.bottom-nav a {
  color: #fff;
  text-decoration: none;
  flex: 1;
  text-align: center;
  display: block;
  height: 100%;
}


/* コピーライト表記の調整 */
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 3rem; /* bottom-navとの重なり回避 */
  padding-bottom: 1rem;
}
/* 非表示にしたいページ（ログイン・チャット等） */
.hide-bottom-nav .bottom-nav {
  display: none;
}

@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}