/* 商品案内TOP 月別検索（month-search.js とセット） */

#month-search {
  width: 1100px;
  max-width: 100%;
  margin: 10px auto 12px;
  box-sizing: border-box;
}

/* 月ボタン */
#month-search .ms-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
#month-search .ms-buttons button {
  flex: 1 1 0;
  min-width: 64px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  color: #2f6b2f;
  background: #ffffff;
  border: 2px solid #6aa84f;
  border-radius: 18px;
  cursor: pointer;
}
#month-search .ms-buttons button:hover {
  background: #eef6e9;
}
#month-search .ms-buttons button.ms-active {
  color: #ffffff;
  background: #6aa84f;
  border-color: #6aa84f;
}

/* 一覧 */
#month-search .ms-result {
  display: none;
  margin-top: 10px;
  padding: 10px 14px 14px;
  border: 1px solid #c9dfbf;
  border-radius: 6px;
  background: #fbfdf9;
  text-align: left;
}
#month-search .ms-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
#month-search .ms-title {
  font-size: 17px;
  font-weight: bold;
  color: #2f6b2f;
}
#month-search .ms-close {
  font-size: 13px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid #999999;
  border-radius: 4px;
  cursor: pointer;
}
#month-search .ms-msg {
  margin: 8px 0;
  color: #555555;
}

/* カテゴリーは2列並び（狭い画面では1列） */
#month-search .ms-cats {
  column-count: 2;
  column-gap: 24px;
}
#month-search section {
  break-inside: avoid;
  margin-bottom: 12px;
}
#month-search h3 {
  margin: 6px 0 4px;
  padding: 2px 8px;
  font-size: 15px;
  color: #ffffff;
  background: #6aa84f;
  border-radius: 3px;
}
#month-search table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#month-search td {
  padding: 3px 6px;
  border-bottom: 1px dotted #c9dfbf;
  vertical-align: top;
}
#month-search td.ms-sanchi {
  width: 6em;
  white-space: nowrap;
  color: #555555;
}
#month-search .ms-none {
  margin: 2px 8px;
  font-size: 13px;
  color: #888888;
}
@media (max-width: 700px) {
  #month-search .ms-cats { column-count: 1; }
}

/* カレンダー表（data-mode="calendar"）：カテゴリーページの表に合わせる */
#month-search table.ms-cal {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#month-search table.ms-cal td {
  border: 1px solid #c9dfbf;
  border-bottom: 1px solid #c9dfbf;
  padding: 3px 6px;
  vertical-align: middle;
}
#month-search .ms-title small {
  margin-left: 6px;
  font-size: 13px;
  font-weight: normal;
  color: #555555;
}
/* 見出し行はスクロールしても上に固定 */
#month-search .ms-cal-head td {
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: bold;
  text-align: center;
  background: #eef6e9;
  box-shadow: inset 0 -1px 0 #c9dfbf;
}
#month-search .ms-cal-cat td {
  font-weight: bold;
  color: #ffffff;
  background: #6aa84f;
}
#month-search table.ms-cal td.ms-mon {
  width: 40px;
  white-space: pre;
  text-align: center;
  font-size: 11px;
  color: #797979;   /* カテゴリーページの■と同じ色 */
}
/* 産地と品目は同じ色 */
#month-search table.ms-cal td.ms-sanchi,
#month-search table.ms-cal td.ms-hinmoku {
  width: 6em;
  text-align: center;
  white-space: pre-line;   /* 産地2つは2行 */
  color: #555555;
}
#month-search table.ms-cal td.ms-hinmoku {
  font-weight: bold;
}
#month-search .ms-cal-head td.ms-mon,
#month-search .ms-cal-head td.ms-sanchi,
#month-search .ms-cal-head td.ms-hinmoku {
  text-align: center;
  color: #333333;
}
/* 選んだ月の列はセルに色（前月下旬・翌月上旬はセルの色は変えず■だけ） */
#month-search table.ms-cal td.ms-sel {
  background: #fff2cc;
}
#month-search .ms-cal-head td.ms-sel {
  background: #e69138;
  color: #ffffff;
}
/* 検索に当たった■（前月下旬・その月・翌月上旬） */
#month-search table.ms-cal .ms-hit {
  color: #e69138;
}