* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: arial, sans-serif;
  color: #202124;
  font-size: 14px;
  line-height: 1.4;
}

/* ホームページ */
.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 584px;
  padding: 0 20px;
}

.logo-long {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 24px;
}

.tagline {
  font-size: 14px;
  color: #4d5156;
  margin-bottom: 28px;
  text-align: center;
}

.search-form {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 16px;
  height: 58px;
  width: 100%;
  transition: box-shadow 0.2s;
}

.search-box:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.search-box:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.search-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.search-input {
  border: none;
  outline: none;
  font-size: 18px;
  height: 50px;
  width: 100%;
  color: #202124;
  background: transparent;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.search-button,
.lucky-button {
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.1s;
}

.search-button:hover,
.lucky-button:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border: 1px solid #dadce0;
  background-color: #f8f9fa;
}

/* 検索結果ページ */
.search-page {
  background: #fff;
}

.search-header {
  border-bottom: 1px solid #ebebeb;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.logo-link {
  flex-shrink: 0;
}

.logo-compact {
  height: 48px;
  width: auto;
}

.header-search-form {
  flex: 1;
  max-width: 600px;
}

.header-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 12px;
  height: 44px;
  width: 100%;
  transition: box-shadow 0.2s;
}

.header-search-box:hover,
.header-search-box:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.header-search-input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  height: 40px;
  color: #202124;
  background: transparent;
  padding: 0 8px;
}

.header-search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 検索結果 */
.search-results {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.loading {
  color: #70757a;
  padding: 20px 0;
}

.results-stats {
  color: #70757a;
  font-size: 14px;
  margin-bottom: 24px;
}

.result-item {
  margin-bottom: 32px;
}

.result-url {
  color: #202124;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 2px;
}

.result-title {
  color: #1a0dab;
  font-size: 20px;
  font-weight: normal;
  text-decoration: none;
  line-height: 26px;
  display: block;
  margin-bottom: 4px;
}

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

.result-title:visited {
  color: #681da8;
}

.result-description {
  color: #4d5156;
  font-size: 14px;
  line-height: 22px;
}

.no-results {
  padding: 20px 0;
}

.no-results-message {
  color: #70757a;
  font-size: 16px;
  margin-bottom: 16px;
}

.suggestion-text {
  font-size: 16px;
  color: #202124;
  margin-bottom: 16px;
}

.suggestion-link {
  color: #1a0dab;
  text-decoration: none;
}

.suggestion-link:hover {
  text-decoration: underline;
}

.suggestions-list {
  margin-top: 24px;
}

.suggestions-list p {
  font-size: 14px;
  color: #202124;
  margin-bottom: 12px;
}

.suggestions-list ul {
  list-style: none;
  padding-left: 0;
}

.suggestions-list li {
  color: #70757a;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.suggestions-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.error-message {
  padding: 20px 0;
}

.error-message p {
  color: #d93025;
  font-size: 16px;
}

.footer {
  color: #4a4a4a;
  position: fixed;
  bottom: 0;
  text-align: center;
  width: 100%;
  font-size: 12px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .logo-long {
    max-width: 300px;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .logo-compact {
    height: 36px;
  }

  .header-search-form {
    width: 100%;
  }

  .search-results {
    padding: 12px;
  }

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