:root {
  --search-cream: #f8f4eb;
  --search-paper: #fffdf8;
  --search-navy: #17324a;
  --search-navy-soft: #24465f;
  --search-green: #238a58;
  --search-green-bright: #27ae60;
  --search-coral: #e96f5e;
  --search-gold: #c99b48;
  --search-ink: #1b2e3c;
  --search-muted: #60717d;
  --search-line: #dce4df;
  --search-shadow: 0 18px 46px rgba(23, 50, 74, 0.1);
}

html {
  scroll-padding-top: 88px;
}

.search-page,
.search-page * {
  box-sizing: border-box;
}

.search-page {
  margin: 0;
  min-width: 320px;
  color: var(--search-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 174, 96, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 32%, rgba(233, 111, 94, 0.07), transparent 24rem),
    var(--search-cream);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0.01em;
}

.search-page a {
  text-underline-offset: 0.18em;
}

.search-page .site-brand-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--search-navy);
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(23, 50, 74, 0.1);
  box-shadow: 0 5px 22px rgba(23, 50, 74, 0.05);
}

.search-page .site-brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.search-page .site-brand {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.search-page .site-brand__mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--search-green-bright), var(--search-green));
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 8px 18px rgba(35, 138, 88, 0.22);
  font-size: 1.1rem;
  font-weight: 900;
}

.search-page .site-brand__text {
  display: grid;
  line-height: 1.2;
}

.search-page .site-brand__text strong {
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.search-page .site-brand__text small {
  margin-top: 3px;
  color: var(--search-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.search-page .site-brand-nav,
.search-page .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.search-page .site-brand-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 13px;
  color: var(--search-navy);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.search-page .site-brand-nav a:hover {
  color: var(--search-green);
  background: rgba(35, 138, 88, 0.08);
}

.search-page .site-page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(23, 50, 74, 0.97), rgba(28, 70, 83, 0.94)),
    var(--search-navy);
}

.search-page .site-page-hero::before,
.search-page .site-page-hero::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.search-page .site-page-hero::before {
  width: 28rem;
  height: 28rem;
  top: -19rem;
  right: -5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4rem rgba(39, 174, 96, 0.06);
}

.search-page .site-page-hero::after {
  width: 10rem;
  height: 10rem;
  right: 16%;
  bottom: -8rem;
  background: rgba(233, 111, 94, 0.18);
}

.search-page .site-page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.search-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
}

.search-page .breadcrumb a {
  color: #fff;
}

.search-page .site-page-hero__eyebrow {
  margin: 0 0 8px;
  color: #8de6b3;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.search-page .site-page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.15rem);
  line-height: 1.25;
  letter-spacing: 0.015em;
}

.search-page .site-page-hero__inner > p:not(.site-page-hero__eyebrow):not(.site-promo-note) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.9;
}

.search-page .search-hero-stat {
  display: inline-flex;
  min-height: 48px;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  backdrop-filter: blur(8px);
}

.search-page .search-hero-stat strong {
  color: #8de6b3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.search-page .search-hero-stat span {
  font-size: 0.78rem;
  font-weight: 800;
}

.search-page .site-promo-note {
  display: block;
  width: fit-content;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.79);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.65;
  text-align: left;
}

.search-page main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: -40px auto 0;
  padding: 0 0 54px;
}

.search-page .search-panel,
.search-page .result-card,
.search-page .quick-panel,
.search-page .empty-panel {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(23, 50, 74, 0.11);
  border-radius: 22px;
  box-shadow: var(--search-shadow);
}

.search-page .search-panel {
  padding: clamp(20px, 3.2vw, 32px);
}

.search-page .search-panel > h2 {
  margin: 0 0 16px;
  color: var(--search-navy);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.02em;
}

.search-page .search-panel > h2::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--search-coral);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5px rgba(233, 111, 94, 0.11);
  vertical-align: 0.08em;
}

.search-page .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 10px;
}

.search-page .search-form input,
.search-page .filter-field select,
.search-page .filter-field input {
  width: 100%;
  min-height: 48px;
  color: var(--search-ink);
  background: #fff;
  border: 1.5px solid #cbd8d3;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.search-page .search-form input {
  min-height: 54px;
  padding: 10px 15px;
  border-width: 2px;
  border-color: #a9c8b8;
  font-size: 1rem;
}

.search-page .search-form input::placeholder,
.search-page .filter-field input::placeholder {
  color: #87959d;
  font-weight: 600;
}

.search-page .search-form button,
.search-page .reset-button,
.search-page .result-actions a,
.search-page .quick-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.search-page .search-form button {
  min-height: 54px;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--search-green-bright), var(--search-green));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(35, 138, 88, 0.23);
}

.search-page .search-form input:focus,
.search-page .filter-field select:focus,
.search-page .filter-field input:focus {
  border-color: var(--search-green);
  outline: 3px solid rgba(35, 138, 88, 0.16);
  outline-offset: 1px;
}

.search-page .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.search-page .quick-links a,
.search-page .chip {
  padding: 8px 13px;
  color: var(--search-navy-soft);
  background: #f1f6f2;
  border: 1px solid #dce8e0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
}

.search-page .filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid var(--search-line);
}

.search-page .filter-field {
  min-width: 0;
}

.search-page .filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--search-muted);
  font-size: 0.73rem;
  font-weight: 850;
}

.search-page .filter-field select,
.search-page .filter-field input {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.search-page .filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

.search-page .active-filters {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.search-page .active-filter-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  color: #17613f;
  background: #e4f4e9;
  border: 1px solid #cbe8d5;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.search-page .reset-button {
  padding: 8px 14px;
  color: #a34537;
  background: #fff7f3;
  border: 1px solid #f0c9c0;
  border-radius: 999px;
  font-size: 0.78rem;
}

.search-page .summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  margin: 17px 0 10px;
  color: var(--search-navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.search-page .summary span {
  margin: 0 4px;
  color: var(--search-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12em;
}

.search-page .result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.search-page .result-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 14px;
  align-content: start;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(23, 50, 74, 0.075);
}

.search-page .result-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--search-green), var(--search-gold), var(--search-coral));
  content: "";
}

.search-page .result-card h2 {
  margin: 2px 0 0;
  font-size: 0.98rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.search-page .result-card h2 a {
  color: var(--search-navy);
  text-decoration: none;
}

.search-page .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--search-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.search-page .meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  background: #f3f5f2;
  border-radius: 7px;
}

.search-page .price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.search-page .price-box {
  min-width: 0;
  padding: 12px;
  background: #f3f8f4;
  border: 1px solid #dbe9de;
  border-radius: 13px;
}

.search-page .price-box:nth-child(2) {
  background: #fff6f2;
  border-color: #f1d7cf;
}

.search-page .price-box span {
  display: block;
  color: var(--search-muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.search-page .price-box strong {
  display: block;
  margin-top: 4px;
  color: var(--search-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.search-page .price-box:nth-child(2) strong {
  color: #c45445;
}

.search-page .result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.search-page .result-actions a {
  min-width: 0;
  padding: 8px 10px;
  color: #fff;
  background: var(--search-green);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
}

.search-page .result-actions a:first-child {
  grid-column: 1 / -1;
}

.search-page .result-actions a.secondary {
  color: var(--search-navy-soft);
  background: #eef3f1;
  border: 1px solid #d8e3df;
}

.search-page .quick-panel,
.search-page .empty-panel {
  padding: clamp(20px, 3vw, 28px);
  margin-top: 22px;
}

.search-page .empty-panel {
  grid-column: 1 / -1;
}

.search-page .quick-panel h2,
.search-page .empty-panel h2 {
  margin: 0 0 8px;
  color: var(--search-navy);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.search-page .quick-panel p,
.search-page .empty-panel p {
  margin: 0;
  color: var(--search-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.8;
}

.search-page .site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--search-navy);
  border-top: 4px solid var(--search-green);
}

.search-page .site-footer__inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 40px;
  gap: 30px;
  align-items: start;
}

.search-page .site-footer__brand {
  display: grid;
  gap: 6px;
  margin: 0;
}

.search-page .site-footer__brand strong {
  color: #fff;
  font-size: 0.92rem;
}

.search-page .site-footer__brand span {
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.65;
}

.search-page .footer-nav {
  justify-content: flex-end;
}

.search-page .footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 750;
}

.search-page :focus-visible {
  outline: 3px solid rgba(233, 111, 94, 0.72);
  outline-offset: 3px;
}

@media (hover: hover) {
  .search-page .search-form button:hover,
  .search-page .result-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(35, 138, 88, 0.2);
  }

  .search-page .quick-links a:hover,
  .search-page .result-actions a.secondary:hover,
  .search-page .reset-button:hover {
    transform: translateY(-1px);
    background: #e7efeb;
  }

  .search-page .result-card:hover {
    border-color: rgba(35, 138, 88, 0.28);
    box-shadow: 0 17px 38px rgba(23, 50, 74, 0.12);
  }

  .search-page .result-card h2 a:hover,
  .search-page .footer-nav a:hover {
    color: #8de6b3;
  }
}

@media (max-width: 900px) {
  .search-page .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-page .filter-field:nth-child(2) {
    grid-column: auto;
  }

  .search-page .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .search-page .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 126px;
  }

  .search-page .site-brand-bar__inner {
    display: grid;
    width: min(100% - 28px, 1120px);
    gap: 5px;
    padding: 9px 0 8px;
  }

  .search-page .site-brand {
    width: fit-content;
  }

  .search-page .site-brand-nav {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .search-page .site-brand-nav::-webkit-scrollbar {
    display: none;
  }

  .search-page .site-brand-nav a {
    flex: 0 0 auto;
    padding-inline: 11px;
  }

  .search-page .site-page-hero__inner {
    width: min(100% - 28px, 1120px);
    padding: 24px 0 64px;
  }

  .search-page main {
    width: min(100% - 24px, 1120px);
  }

  .search-page .search-form {
    grid-template-columns: 1fr;
  }

  .search-page .filter-actions {
    align-items: stretch;
  }

  .search-page .active-filters {
    flex: 1 1 100%;
  }

  .search-page .reset-button {
    width: 100%;
  }

  .search-page .result-grid {
    grid-template-columns: 1fr;
  }

  .search-page .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }
}

@media (max-width: 430px) {
  .search-page .site-brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .search-page .site-page-hero h1 {
    font-size: 1.8rem;
  }

  .search-page .search-panel,
  .search-page .result-card {
    border-radius: 18px;
  }

  .search-page .filter-panel {
    grid-template-columns: 1fr;
  }

  .search-page .price-row,
  .search-page .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-page .quick-links a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .search-page .footer-nav a {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-page *,
  .search-page *::before,
  .search-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
