/* ================================== */
/* kotoba_info.css：言葉情報ページ用（PC/スマホ対応） */
/* ================================== */

/* コンテンツ全体の表示枠 */
main {
/*  max-width: 800px; */
/*  margin: 1em auto; */
  padding: 0.5em;
/*  background: #fff; */
/*  border: 1px solid #ccc; */
/*  border-radius: 8px; */
/*  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1); */
}

/* 表全体 */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1em;
  font-size: 1em;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  word-break: break-word;
}

th {
  background: #f0f8ff;
  width: 9em;
  text-align: center;
}

td {
  background: #ffffff;
}

/* ブックマークボタン（💛） */
.bookmark-button {
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2em;
}
.bookmark-button:hover {
  opacity: 0.75;
}

/* 上部バー（ブックマーク・タイトル・編集ボタン） */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1.5em 0 0.5em;
}

/* タイトル中央寄せ（左右にボタンあり） */
.top-title {
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

/* 編集ボタン：横長＋改行防止 */
.edit-button {
  display: inline-block;
  padding: 8px 24px;
  min-width: 100px;
  background: #4CAF50;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 1em;
}
.edit-button:hover {
  background-color: #388e3c;
}

/* リンク下線除去 */
a.no-underline {
  text-decoration: none;
}

/* スマホ対応 */
@media screen and (max-width: 599px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .top-title {
    font-size: 1.1em;
    margin: 0.5em 0;
  }

  .edit-button {
    font-size: 0.95em;
    padding: 6px 18px;
  }

  table {
    font-size: 0.95em;
  }

  th, td {
    padding: 8px;
  }
}


.qkbn-label {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.qkbn-label.selected {
  background-color: #ffe066;  /* 選択時の背景色 */
}


