* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
               Meiryo, sans-serif;
  line-height: 1.7;
}

.search-page {
  width: min(760px, calc(100% - 36px));
  margin: 56px auto;
}

.site-name {
  color: #5f6368;
  font-size: 14px;
  text-decoration: none;
}

.site-name:hover { text-decoration: underline; }

h1 {
  margin: 30px 0 22px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: .02em;
}

.search-form {
  display: flex;
  width: 100%;
  min-height: 52px;
  border: 1px solid #dfe1e5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(32, 33, 36, .12);
}

.search-form:focus-within {
  border-color: #9aa0a6;
  box-shadow: 0 1px 7px rgba(32, 33, 36, .2);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 22px;
  font-size: 16px;
  background: transparent;
  color: inherit;
}

.search-form button {
  border: 0;
  padding: 0 25px;
  background: #f8f9fa;
  color: #202124;
  font-size: 15px;
  cursor: pointer;
}

.search-form button:hover { background: #eef0f2; }

.search-status {
  margin: 28px 0 14px;
  color: #5f6368;
  font-size: 14px;
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-result {
  padding: 18px 0 20px;
  border-bottom: 1px solid #eee;
}

.result-title {
  color: #1a0dab;
  font-size: 19px;
  text-decoration: none;
}

.result-title:hover { text-decoration: underline; }

.result-excerpt {
  margin: 7px 0 4px;
  color: #4d5156;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.result-excerpt mark {
  background: #fff2a8;
  color: inherit;
}

.result-url {
  margin: 0;
  color: #188038;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.visually-hidden {
  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) {
  .search-page { margin-top: 30px; }
  .search-form button { padding: 0 17px; }
}
