@charset "UTF-8";

/* shp02020.pl: visual styling for the server-rendered search form only. */
form[action="shp02020.pl"],
form[action="shp02020.pl"] * { box-sizing: border-box; }

form[action="shp02020.pl"] {
  width: min(1180px, calc(100vw - 32px));
  margin: 24px auto 32px;
  padding: 28px 32px 23px;
  border: 1px solid #ecdedf;
  border-top: 3px solid #91324f;
  border-radius: 8px;
  color: #312b28;
  background: #fffdfd;
  box-shadow: 0 14px 32px rgba(65, 35, 44, .055);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

form[action="shp02020.pl"]::before {
  content: "お花を探す";
  display: block;
  margin: 0 0 22px;
  color: #312b28;
  font: 500 23px/1.4 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: .08em;
}

/* The first table is an empty spacer in the current server output. */
form[action="shp02020.pl"] > table.tbl00:first-of-type {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
form[action="shp02020.pl"] > table.tbl00:first-of-type:has(td:only-child:empty) {
  display: none;
}

form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr) 170px;
  grid-template-rows: auto minmax(52px, auto) auto auto;
  gap: 8px 16px;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr {
  display: contents;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr > td {
  display: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Reposition the existing labels, selects and buttons; no form elements change. */
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(4),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(5),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(7),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(7),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(9),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(3) > td:nth-child(9) {
  display: block;
}

form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(4) { grid-area: 1 / 1; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(5) { grid-area: 1 / 2; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(7) { grid-area: 1 / 3; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4) { grid-area: 2 / 1; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5) { grid-area: 2 / 2; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(7) { grid-area: 2 / 3; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(9) { grid-area: 4 / 4; }
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(3) > td:nth-child(9) {
  grid-area: 4 / 3;
  justify-self: end;
  align-self: center;
}

form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody::after {
  content: "";
  grid-area: 3 / 1 / 4 / -1;
  margin-top: 10px;
  border-top: 1px solid #f0e7e7;
}

form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td {
  color: #514944;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .04em;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td font {
  color: #514944 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td img {
  display: none;
}

form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5),
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(7) {
  position: relative;
}
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4)::after,
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5)::after,
form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(7)::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 19px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #966a78;
  border-bottom: 1.5px solid #966a78;
  transform: rotate(45deg);
  pointer-events: none;
}

form[action="shp02020.pl"] select {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 42px 0 16px;
  border: 1px solid #dfd2d3;
  border-radius: 5px;
  color: #514944;
  background: #fff;
  font: 500 15px/1.5 "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
form[action="shp02020.pl"] select:hover { border-color: #bd929f; }
form[action="shp02020.pl"] select:focus-visible {
  outline: 0;
  border-color: #91324f;
  box-shadow: 0 0 0 3px rgba(176, 74, 112, .15);
}

form[action="shp02020.pl"] input[type="submit"],
form[action="shp02020.pl"] input[type="button"] {
  width: auto;
  height: auto;
  margin: 0;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
form[action="shp02020.pl"] input[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid #91324f;
  border-radius: 4px;
  color: #fff;
  background: #91324f;
  box-shadow: 0 5px 12px rgba(145, 50, 79, .12);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .13em;
  transition: background-color .2s, box-shadow .2s;
}
form[action="shp02020.pl"] input[type="submit"]:hover {
  background: #ad496a;
  box-shadow: 0 7px 16px rgba(145, 50, 79, .19);
}
form[action="shp02020.pl"] input[type="button"] {
  padding: 7px 1px;
  border: 0;
  border-bottom: 1px solid #bbb0ae;
  border-radius: 0;
  color: #6b625e;
  background: transparent;
  font-size: 13px;
}
form[action="shp02020.pl"] input[type="button"]:hover {
  color: #91324f;
  border-bottom-color: #91324f;
}
form[action="shp02020.pl"] input:focus-visible {
  outline: 3px solid rgba(176, 74, 112, .28);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  form[action="shp02020.pl"] {
    margin: 18px 0 26px 16px;
    padding: 23px 18px 18px;
  }
  form[action="shp02020.pl"]::before { margin-bottom: 20px; font-size: 21px; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(4) { order: 1; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4) { order: 2; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(5) { order: 3; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5) { order: 4; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(7) { order: 5; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(7) { order: 6; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody::after {
    order: 7;
    width: 100%;
    margin: 5px 0 18px;
  }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(9) { order: 8; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(3) > td:nth-child(9) {
    order: 9;
    align-self: center;
    margin-top: 12px;
  }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(4),
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(5),
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:first-child > td:nth-child(7) { margin-bottom: 8px; }
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(4),
  form[action="shp02020.pl"] > table.tbl00:nth-of-type(2) > tbody > tr:nth-child(2) > td:nth-child(5) { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  form[action="shp02020.pl"] select,
  form[action="shp02020.pl"] input[type="submit"] { transition: none; }
}
