* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff7ef;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;
}

a {
  color: #d85f00;
}

.site-wrap {
  width: min(100%, 720px);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  border-left: 1px solid #efc7a6;
  border-right: 1px solid #efc7a6;
}

.site-header {
  padding: 0;
}

.header-band-link {
  display: block;
  text-align: center;
  background: #ff9800;
  line-height: 0;
}

.header-band {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.pr-note {
  padding: 6px 8px;
  border-top: 1px solid #f0a35f;
  border-bottom: 1px solid #f0a35f;
  background: #fff3e5;
  color: #5b2c00;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.search-page {
  padding: 12px 10px 28px;
}

.search-box,
.results-wrap {
  border: 1px solid #e69a57;
  background: #fff;
}

.results-wrap {
  margin-top: 12px;
}

.section-title {
  padding: 8px 10px;
  background: linear-gradient(#f9a64f, #ee7f16);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.section-title.small {
  display: block;
  width: 100%;
  font-size: 16px;
}

.lead {
  margin: 0;
  padding: 12px 10px 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.search-form {
  padding: 0 10px 10px;
}

.search-row {
  display: flex;
  gap: 6px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #d89050;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: 16px;
}

.search-row input:focus {
  outline: 2px solid #ffd4aa;
  border-color: #ea7d18;
}

.search-row button {
  min-width: 82px;
  height: 44px;
  border: 1px solid #ca6408;
  border-radius: 3px;
  background: linear-gradient(#ff9d39, #ef7410);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.clear-button {
  margin-top: 7px;
  padding: 5px 12px;
  border: 1px solid #d9b18e;
  border-radius: 3px;
  background: #fff7ef;
  color: #7b4a20;
  cursor: pointer;
  font-size: 12px;
}

.status {
  padding: 8px 10px;
  border-top: 1px solid #f1d7c0;
  background: #fffaf5;
  color: #777;
  font-size: 12px;
}

.local-help {
  margin: 10px;
  padding: 10px;
  border: 1px solid #e0b14b;
  background: #fff9dd;
  font-size: 12px;
}

.local-help p {
  margin: 0 0 8px;
}

.file-button {
  display: inline-block;
  padding: 7px 10px;
  background: #8a5b31;
  color: #fff;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.results-head {
  position: relative;
  width: 100%;
  background: #f4a050;
}

.result-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.result-count:empty {
  display: none;
}

.results {
  padding: 0 10px;
}

.result-item {
  padding: 12px 0;
  border-bottom: 1px dotted #d8a97d;
}

.result-item:last-child {
  border-bottom: 0;
}

.result-title {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.55;
}

.result-title a {
  color: #d65900;
  font-weight: 700;
  text-decoration: underline;
}

.store {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid #e18b45;
  border-radius: 2px;
  background: #fff4e9;
  color: #a54a00;
  font-size: 10px;
  vertical-align: 1px;
}

.meta {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.meta dt,
.meta dd {
  display: inline;
  margin: 0;
}

.meta dt {
  color: #7a4b22;
  font-weight: 700;
}

.meta dt::after {
  content: "：";
}

.meta dd::after {
  content: "";
  display: block;
}

.empty-message,
.error-message {
  margin: 0;
  padding: 20px 8px;
  color: #777;
  text-align: center;
  font-size: 13px;
}

.error-message {
  color: #b02020;
}

.more-message {
  margin: 12px 0;
  padding: 8px;
  background: #fff4e9;
  color: #7a5739;
  font-size: 12px;
  text-align: center;
}

.top-button {
  display: block;
  margin: 14px 0 0;
  padding: 10px;
  border: 1px solid #cd6c16;
  background: linear-gradient(#ff9f43, #ea7716);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-footer {
  padding: 16px 10px 22px;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .site-wrap {
    border-left: 0;
    border-right: 0;
  }

  .search-page {
    padding: 8px 6px 24px;
  }

  .section-title {
    font-size: 16px;
  }

  .lead {
    padding: 10px 8px 7px;
  }

  .search-form {
    padding-left: 8px;
    padding-right: 8px;
  }

  .search-row button {
    min-width: 72px;
    padding: 0 10px;
  }

  .results {
    padding: 0 8px;
  }

  .result-title {
    font-size: 14px;
  }

  .pr-note {
    font-size: 11px;
  }
}
