html { scroll-behavior: smooth; }

.desktop-nav a:hover { color: #000; }

/* moved to style.css (qb-btn:hover) */

.hero {
  position: relative;
  width: 100%;
  height: 544px;
  overflow: hidden;
  background: #ddd;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity .75s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.is-active { opacity: 1; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

section { padding: 50px 0; }

.product-area {
    padding: 38px 0 10px;
    background-color: #f8f8f8;
}

h1, h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 24px;
  line-height: 1.25;
}

.product-board {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
}

.product-board::-webkit-scrollbar {
  display: none;
}

.product-tile {
  flex: 0 0 calc(20% - 22.4px);
  min-width: 200px;
  min-height: 130px;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #666;
  transition: transform .2s ease, color .2s ease;
}

.product-tile:hover {
  transform: translateY(-2px);
  color: #111;
}

.product-tile img {
  width: 150px;
  height: 205px;
  object-fit: contain;
}

.product-tile span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  word-break: keep-all;
}

.check-area { padding: 48px 0 46px; }

.check-area h2 {
  margin: 0 0 26px;
  text-align: center ;
  font-size: 28px;
}

.question-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.question-grid::-webkit-scrollbar { display: none; }

.question-card {
  position: relative;
  flex: 0 0 calc((100% - 72px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  color: #111;
  transition: transform .25s ease;
}

.question-card:hover {
  transform: translateY(-5px);
}

.question-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

.question-card__media {
  position: relative;
}

.question-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15), transparent);
  pointer-events: none;
}

.question-card strong {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  z-index: 2;
}

.question-card__price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 78%;
  height: 36px;
  flex-shrink: 0;
  margin: 14px auto;
  background: rgba(194, 26, 0, .06);
  white-space: nowrap;
}

.question-card__price::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23c21a00'%20stroke-width='2'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Ctext%20x='12'%20y='16.5'%20text-anchor='middle'%20font-size='11'%20fill='%23c21a00'%20stroke='none'%20font-weight='700'%3E%E2%82%A9%3C/text%3E%3C/svg%3E") no-repeat center / contain;
}

.question-card__price b {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  line-height: 1.1;
}

.branch-area { background: #f8f8f8; }

.branch-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.branch-list a {
  width: 240px;
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  background: #f1f3f5;
  transition: transform .2s ease, box-shadow .2s ease;
}

.branch-list a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.branch-list strong { font-size: 18px; }
.branch-list img { width: 80px; }

.photo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.photo-wall a {
  position: relative;
  display: block;
  overflow: hidden;
}

.photo-wall a:nth-child(6n+1) { grid-column: 1; grid-row: span 2; }
.photo-wall a:nth-child(6n+4) { grid-column: 4; grid-row: span 2; }
.photo-wall a:nth-child(6n+2) { grid-column: 2; }
.photo-wall a:nth-child(6n+3) { grid-column: 3; }
.photo-wall a:nth-child(6n+5) { grid-column: 2; }
.photo-wall a:nth-child(6n+6) { grid-column: 3; }

.photo-wall a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.46);
  opacity: 0;
  transition: opacity .25s ease;
}

.photo-wall a:hover::after { opacity: 1; }

.photo-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-wall a:nth-child(6n+1) img,
.photo-wall a:nth-child(6n+4) img {
  aspect-ratio: 3 / 4;
}

.photo-wall a:nth-child(6n+2) img,
.photo-wall a:nth-child(6n+3) img,
.photo-wall a:nth-child(6n+5) img,
.photo-wall a:nth-child(6n+6) img {
  aspect-ratio: 3 / 2;
}

.photo-wall a:hover img { transform: scale(1.04); }

@media (max-width: 1199px) {
  .product-tile { flex: 0 0 calc(20% - 22.4px); }
}

@media (max-width: 991px) {
  .hero { height: 446px; }
  .product-tile { flex: 0 0 calc(25% - 21px); }
  .photo-wall { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .photo-wall a:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: 0;
    padding-bottom: 75%;
  }
  .photo-wall a:nth-child(n) img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .hero { height: 380px; }
  section { padding: 40px 0; }
  h1, h2 { font-size: 20px; }
  .product-tile { flex: 0 0 calc(33.33% - 19px); min-width: 150px; }
}

@media (max-width: 575px) {
  .hero { height: 300px; }
  section { padding: 36px 0; }
  h1, h2 { margin-bottom: 18px; font-size: 18px; }
  .product-tile { flex: 0 0 calc(33.33% - 6px); min-width: 100px; min-height: 132px; padding: 8px 2px; }
  .product-tile img { height: 76px; margin-bottom: 7px; }
  .product-tile span { font-size: 12px; }
  .question-grid { gap: 12px; }
  .question-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-height: 220px;
    padding: 0;
  }
  .question-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 5;
    object-fit: cover;
  }
  .question-card strong {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 18px;
  }
  .branch-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .branch-list a { width: auto; min-height: 112px; padding: 14px; border-radius: 14px; }
  .branch-list strong { font-size: 16px; }
  .branch-list img { width: 65px; }
}

@media (min-width: 481px) and (max-width: 575px) {
  .question-card {
    flex: 0 0 calc((100% - 24px) / 3);
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .question-grid { gap: 24px; }
  .question-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-height: 220px;
    padding: 0;
  }
  .question-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 5;
    object-fit: cover;
  }
  .question-card strong {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 18px;
  }
}
