/* Yahoo! top final visual polish / 2026-07-27 */

:root {
  --polish-ink: #05080c;
  --polish-panel: #09131c;
  --polish-paper: #eeeae0;
  --polish-yellow: #ffca00;
  --polish-white: #f7f7f5;
  --polish-muted: #8f969d;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--polish-yellow);
  color: var(--polish-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--polish-yellow) !important;
  outline-offset: 3px;
}

.search,
.search_detail,
.recommend,
.fixed-background-section,
.qa,
.order,
.site_footer {
  scroll-margin-top: 18px;
}

/* Keyword search: compact bridge between hero and vehicle matching */
.search {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid rgba(5, 8, 12, 0.18);
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(5, 8, 12, 0.045) 1px, transparent 1px),
    var(--polish-paper);
  background-size: 34px 34px;
}

.search::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  color: rgba(5, 8, 12, 0.045);
  content: "SEARCH";
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(82px, 12vw, 150px);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.search .search-container {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1180px;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: end;
  gap: 42px;
  margin: 0 auto;
  padding: 48px 24px 52px;
}

.search .search-container h2 {
  margin: 0;
  color: var(--polish-ink);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: left;
}

.search .search-container h2::before {
  display: block;
  margin-bottom: 9px;
  color: #8d6c00;
  content: "QUICK SEARCH";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2em;
}

.search .search-contents {
  min-width: 0;
}

.search .search-contents form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  box-shadow: 0 12px 30px rgba(5, 8, 12, 0.1);
}

.search .search-contents .text {
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 2px solid var(--polish-ink);
  border-right: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--polish-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.search .search-contents .text::placeholder {
  color: #8c9195;
  font-weight: 600;
}

.search .seach_button {
  position: relative;
  width: auto;
  border: 2px solid var(--polish-ink);
  border-radius: 0;
  background: var(--polish-yellow);
  color: var(--polish-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.search .seach_button::after {
  margin-left: 9px;
  content: "→";
}

.search .seach_button:hover {
  background: var(--polish-ink);
  color: var(--polish-yellow);
}

/* Keep the section transitions on one visual rhythm */
.search_detail {
  border-top-width: 3px;
}

.recommend {
  border-bottom: 3px solid var(--polish-yellow);
}

.fixed-background-section {
  min-height: 0;
  border-bottom: 3px solid var(--polish-yellow);
}

.fixed-background-section .content-box {
  width: min(960px, calc(100% - 48px));
}

.tire_brand h2 {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 18px;
  color: var(--polish-white);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.tire_brand h2::before {
  display: block;
  margin-bottom: 9px;
  color: var(--polish-yellow);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2em;
}

.tire_brand .box1 h2::before {
  content: "TIRE BRAND";
}

.tire_brand .box2 h2::before {
  content: "WHEEL BRAND";
}

.tire_brand h2::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  color: rgba(255, 255, 255, 0.48);
  content: "SELECTED MAKERS";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.fixed-background-section .box1 {
  padding-top: 76px;
  padding-bottom: 82px;
}

.fixed-background-section .box2 {
  padding-bottom: 92px;
}

.tire_brand ul {
  gap: 16px;
}

.tire_brand li a {
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tire_brand li a:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
}

.order {
  border-top: 3px solid var(--polish-yellow);
}

.site_footer {
  border-top: 3px solid var(--polish-yellow);
}

/* Long page utility */
.site_footer .copyright {
  position: relative;
}

.site_footer .back_to_top {
  position: absolute;
  top: 50%;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-decoration: none;
  transform: translateY(-50%);
}

.site_footer .back_to_top::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 202, 0, 0.7);
  color: var(--polish-yellow);
  content: "↑";
  font-size: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site_footer .back_to_top:hover::after {
  background: var(--polish-yellow);
  color: var(--polish-ink);
}

@media screen and (max-width: 767px) {
  .search::after {
    right: -8px;
    bottom: -8px;
    font-size: 68px;
  }

  .search .search-container {
    display: block;
    width: 100%;
    margin: 0;
    padding: 25px 14px 29px;
  }

  .search .search-container h2 {
    display: block;
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .search .search-container h2::before {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .search .search-contents form {
    grid-template-columns: minmax(0, 1fr) 78px;
    box-shadow: 0 8px 20px rgba(5, 8, 12, 0.1);
  }

  .search .search-contents .text {
    height: 48px;
    padding: 0 12px;
    font-size: 12px;
  }

  .search .seach_button {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .search .seach_button::after {
    display: none;
  }

  .fixed-background-section {
    background-attachment: scroll;
  }

  .fixed-background-section .content-box {
    width: 100%;
  }

  .fixed-background-section .box1 {
    padding: 54px 20px 64px;
  }

  .fixed-background-section .box2 {
    padding: 0 20px 70px;
  }

  .tire_brand h2 {
    margin-bottom: 18px;
    padding-bottom: 14px;
    font-size: 25px;
  }

  .tire_brand h2::before {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .tire_brand h2::after {
    display: none;
  }

  .tire_brand ul {
    gap: 8px;
  }

  .site_footer .copyright {
    padding-top: 46px;
  }

  .site_footer .back_to_top {
    top: 13px;
    right: 50%;
    transform: translateX(50%);
  }
}
