.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.main-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.subtitle {
  font-size: 1.2rem;
  color: #4a6fa5; /* 濃いめの青みがかったグレー */
  font-weight: 500;
}


/* タイトルを小さくする */
.small-title {
  color: #004b8d;
  font-size: 1.4em;
  margin: 20px 0;
  text-align: center;
}


/* portal セクションタイトル */
.portal-section {
  font-size: 1.2em;
  font-weight: bold;
  color: #0070c0;
  margin: 20px 0 10px;
}

.category-row-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.select-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.select-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0a5fad;  /* 青系統 */
  margin-bottom: 0.4rem;
}

/* category-row ボタン */
.category-button {
  background-color: #fff;
  border: 2px solid #0070c0;
  color: #0070c0;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s, color 0.3s;
}
.category-button:hover,
.category-button.active {
  background-color: #0070c0;
  color: #fff;
}

.category-row {
  display: flex;
  flex-wrap: nowrap;         /* 折り返さず横に並べる */
  overflow-x: auto;          /* 横スクロールを有効に */
  -webkit-overflow-scrolling: touch; /* スマホでスムーズスクロール */
  padding-bottom: 8px;       /* 下に少し余白 */
  gap: 6px;                  /* ボタンの間隔 */
}

/* スクロールバーを目立たせたくない場合（任意） */
.category-button {
  flex: 0 0 auto;         /* 縮まない・伸びない・自分の幅を維持 */
  min-width: 120px;       /* お好みで調整 */
}

.category-row::-webkit-scrollbar {
  height: 6px;
}
.category-row::-webkit-scrollbar-thumb {
  background: rgba(0, 112, 192, 0.5);
  border-radius: 3px;
}
.category-row::-webkit-scrollbar-track {
  background: transparent;
}


/* contents-list 部分の調整 */
.contents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px;
  justify-content: center;
}

.content-item {
  width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s;
}

.content-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.content-item p {
  margin: 8px;
  font-size: 0.9em;
}

.content-item:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}


/* フローティングチャットボタン */
#chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0070c0;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* チャットウィンドウ */
#chat-window {
  display: none; /* 初期は非表示 */
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

/* チャットヘッダー */
#chat-header {
  background-color: #0070c0;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* チャットメッセージ表示部分 */
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9em;
}

/* 入力欄 */
#chat-input {
  border: none;
  border-top: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
