/* ブランドページ（/shop/*.php）共通スタイル */
.brand-page {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #1a1a1a;
}

#navbar {
  background: #0d0d0d;
}

.brand-section {
  padding: 72px 20px;
  scroll-margin-top: var(--nav-h);
}

.brand-section-soft {
  background: #f8f5f0;
}

.brand-page>.brand-section:first-child {
  padding-top: calc(var(--nav-h) + 48px);
}

.brand-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.brand-en {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: .3em;
  color: #d7000f;
  font-weight: 500;
  margin-bottom: 8px;
}

.brand-title {
  font-family: 'Noto Serif JP', serif;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.6;
  margin-bottom: 36px;
  color: #1a1a1a;
}

.brand-cat {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: #d7000f;
  letter-spacing: .08em;
  padding-bottom: 8px;
  border-bottom: 2px solid #d7000f;
  margin: 36px 0 16px;
}

.brand-cat:first-child {
  margin-top: 0;
}

.brand-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.brand-menu-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.brand-menu-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ccc;
}

.brand-menu-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-menu-body {
  padding: 10px 12px 12px;
}

.brand-menu-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.brand-menu-price {
  font-size: 13px;
  font-weight: 600;
  color: #d7000f;
  margin: 4px 0 0;
}

.brand-menu-note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5f5853;
}

.brand-shops {
  background: #f8f5f0;
  color: #3a3532;
}

.brand-shops .brand-en {
  color: #a8323a;
}

.brand-shops .brand-title {
  color: #3a3532;
  font-weight: 600;
  margin-bottom: 8px;
}

.brand-shops-count {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .25em;
  color: #8a672c;
  margin: 0 0 28px;
}

.brand-shop-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.brand-shop-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 32px) / 3);
  background: #fff;
  overflow: hidden;
  border: 1px solid #e8e2d9;
  border-radius: 8px;
}

.brand-shop-photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e2d9;
}

.brand-shop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.brand-shop-card:hover .brand-shop-photo img {
  transform: scale(1.05);
}

.brand-shop-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, 0) 70%);
}

.brand-shop-no {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.brand-shop-head {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 10px;
}

.brand-shop-area {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #fff;
  background: #a8323a;
  padding: 2px 8px;
  margin-bottom: 5px;
}

.brand-shop-name {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.brand-shop-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}

.brand-shop-addr {
  font-size: 12px;
  line-height: 1.6;
  color: #5f5853;
  font-style: normal;
  margin: 0;
}

.brand-shop-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.brand-shop-btn {
  display: block;
  text-align: center;
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 500;
  color: #3a3532;
  text-decoration: none;
  border: 1px solid #cfc7bb;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.brand-shop-btn:hover {
  background: #f3eee6;
  color: #3a3532;
  border-color: #cfc7bb;
}

.brand-shop-btn-map {
  background: #a8323a;
  border-color: #a8323a;
  color: #fff;
}

.brand-shop-btn-map:hover {
  background: #8e2a31;
  color: #fff;
  border-color: #8e2a31;
}

.brand-all-shops {
  text-align: center;
  margin-top: 28px;
}

.brand-online-shop {
  margin-top: 12px;
}

.brand-all-shops a {
  color: #3a3532;
  font-size: 14px;
  text-underline-offset: 4px;
}

/* タブレット・スマホは写真を左に置いた横並びリストにして縦の長さを抑える */
@media (max-width: 900px) {
  .brand-shop-grid {
    gap: 10px;
  }

  .brand-shop-card {
    flex-basis: calc((100% - 10px) / 2);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 12px;
    padding: 10px;
  }

  .brand-shop-photo,
  .brand-shop-body {
    display: contents;
  }

  .brand-shop-photo::after,
  .brand-shop-no {
    display: none;
  }

  .brand-shop-photo img {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: 84px;
    transform: none !important;
  }

  .brand-shop-head {
    position: static;
    grid-column: 2;
    grid-row: 1;
  }

  .brand-shop-area {
    font-size: 10px;
    padding: 1px 6px;
    margin-bottom: 3px;
  }

  .brand-shop-name {
    font-size: 15px;
    line-height: 1.35;
    color: #3a3532;
  }

  .brand-shop-addr {
    grid-column: 2;
    grid-row: 2;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.5;
  }

  .brand-shop-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 10px;
  }

  .brand-shop-btn {
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 640px) {
  .brand-section {
    padding: 52px 16px;
  }

  .brand-page>.brand-section:first-child {
    padding-top: calc(var(--nav-h) + 32px);
  }

  .brand-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .brand-menu-name {
    font-size: 13px;
  }

  .brand-shop-card {
    flex-basis: 100%;
  }
}
