.ec-date-field {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 164px;
  width: 164px;
  vertical-align: middle;
}
.s__form .advanced_search .yymmdd .ec-date-field .date-input,
.s__tbSearch .sp_searchArea .yymmdd .ec-date-field .date-input {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 124px;
  min-width: 0;
  max-width: none;
  height: 40px;
  margin: 0;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 16px;
  letter-spacing: normal;
}
.ec-date-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  padding: 0;
  border: 1px solid #aaa;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #f6f3f2;
  color: #730c06;
  cursor: pointer;
}
.ec-date-field__button svg { width: 20px; height: 20px; }
.ec-date-calendar {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  width: 320px;
  max-width: calc(100% - 16px);
  padding: 12px;
  border: 1px solid #d4c9c7;
  border-radius: 8px;
  background: #fff;
  color: #333;
  box-shadow: 0 8px 24px rgba(45, 10, 8, .18);
  font: 16px/1.4 'Roboto', 'Yu Gothic', sans-serif;
}
.ec-date-calendar[hidden] { display: none; }
.ec-date-calendar button, .ec-date-calendar input, .ec-date-calendar select {
  box-sizing: border-box;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.ec-date-calendar button { display: block; min-height: 40px; padding: 0; cursor: pointer; }
.ec-date-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ec-date-calendar__head > button { width: 36px; font-size: 28px; }
.ec-date-calendar__head label { display: flex; align-items: center; white-space: nowrap; }
.ec-date-calendar__head input { width: 76px; }
.ec-date-calendar__head input, .ec-date-calendar__head select { height: 40px; padding: 4px; border-color: #cbbfbd; }
.ec-date-calendar__week, .ec-date-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ec-date-calendar__week { margin-bottom: 4px; color: #666; text-align: center; font-size: 14px; }
.ec-date-calendar__days button { height: 40px; }
.ec-date-calendar__days button:nth-child(7n + 1) { color: #a11b16; }
.ec-date-calendar__days button:nth-child(7n) { color: #25618d; }
.ec-date-calendar button:hover, .ec-date-field__button:hover { background: #f6ebe9; }
.ec-date-calendar button[aria-current="date"] { border-color: #961c1c; }
.ec-date-calendar button[aria-pressed="true"] { background: #961c1c; color: #fff; }
.ec-date-calendar button:disabled { opacity: .35; cursor: default; }
.ec-date-calendar__footer { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e7dfdd; }
.ec-date-calendar__footer button { width: 31%; color: #730c06; }
.ec-date-calendar :focus, .ec-date-field :focus { outline: 2px solid #961c1c; outline-offset: 2px; }
.ec-date-field [aria-invalid="true"] { border-color: #b32218; }
