@charset "UTF-8";

/* ====== 全体共通 ====== */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
  color: #333;
}

/* ====== ヘッダー ====== */
.header {
  background: linear-gradient(90deg, #f8f0f0, #f0f8f8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px 20px;
  position: relative;
}

.header-logo {
  height: 60px;
}

.subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: right;
  white-space: nowrap;
  padding-top: 5px;
}

/* ====== ハンバーガーメニュー（スマホ用） ====== */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.8em;
  padding: 12px 16px;
  cursor: pointer;
  background-color: #ffecec;
  color: #b03030;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1001;
  border: none;
}

/* ====== メインメニュー ====== */
.main-menu {
  width: 100%;
  background: linear-gradient(to right, #ffecec, #e0f7fa);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-menu ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.main-menu li a {
  display: block;
  padding: 14px 20px;
  color: #444;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid #ddd;
  transition: background 0.3s, color 0.3s;
}

.main-menu li:last-child a {
  border-right: none;
}

.main-menu li a:hover {
  background-color: #ffcdd2;
  color: #b03030;
}

/* ====== タブボタン（カテゴリ選択） ====== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  background: #eee;
  border-bottom: 1px solid #ccc;
}

.tab-button {
  flex: 0 0 25%;  /* 横4つに固定 */
  box-sizing: border-box;
  padding: 10px 0;
  border: 1px solid #ccc;
  border-right: none;
  border-bottom: none;
  background: #f0f0f0;
  font-size: 0.9em;
  text-align: center;
  cursor: pointer;
  word-break: keep-all;
}

.tab-button:last-child {
  border-right: 1px solid #ccc;
}

.tab-button.active {
  background: #fff;
  font-weight: bold;
  border-bottom: 1px solid #fff;
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  max-width: 800px;
  margin: auto;
  background-color: #fff;
}

.tab-content.active {
  display: block;
}




/* ====== フッター ====== */
footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  background-color: #f5f5f5;
  color: #555;
}

/* ====== スマホ向けメニュー対応（768px以下） ====== */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .main-menu ul {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #ccc;
    background-color: #fff;
  }

  .main-menu li a {
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .menu-toggle:checked ~ .main-menu ul {
    display: flex;
  }

  .subtitle {
    text-align: left;
    padding-top: 10px;
  }

  /* スマホでもタブは4つ横並びのまま */
  .tab-button {
    flex: 0 0 25%;
    font-size: 0.85em;
  }
}
