/* ==========================================================================
   店舗一覧(store) — /store/ 専用
   ========================================================================== */

.page-store main {
  overflow-x: visible;
}

.store-panel {
  --deco-panel-corner-1: var(--color-accent);
  --deco-panel-corner-1-opacity: 65%;
  --deco-panel-corner-2: var(--color-primary);
}

.store-panel .store-panel__lead {
  margin: 48px auto 44px;
  max-width: 840px;
  font-size: 1.125rem;
  text-align: center;
}

/* --- エリア切替ボタン --- */
.store-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px 24px;
  margin: 0 0 56px;
}

.store-switch__item {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.store-switch__btn {
  width: 200px;
  /* gap: 12px; */
  min-width: 168px;
  /* padding: 15px 24px; */
}

.store-switch__sublabel {
  margin: 0;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* その他地域 */
.store-switch__item--other {
  align-items: center;
}

.store-switch__item--other .store-switch__sublabel {
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.3;
}

/* エリア色 */
.btn--hino     { --btn-color: var(--color-store-hino); }
.btn--hachioji { --btn-color: var(--color-store-hachioji); }
.btn--other    { --btn-color: var(--color-store-other); }

/* --- エリアセクション --- */
.store-area {
  margin-top: 140px;
  text-align: left;
}

.store-switch + .store-area {
  margin-top: 0;
}

.store-area__title {
  margin: 0 0 8px;
  padding-bottom: 16px;
  border-bottom: 3px solid currentColor;
  font-size: 1.875rem;
  font-weight: var(--font-weight-bold);
}

.store-area__title--hino {
  color: var(--color-store-hino);
}

.store-area__title--hachioji {
  color: var(--color-store-hachioji);
}

.store-area__title--other {
  color: var(--color-store-other);
}

/* --- 店舗カードリスト --- */
.store-area .store-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-area .store-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding-block: 32px;
  border-bottom: 1px solid var(--store-card-border-color, color-mix(in srgb, var(--color-text-sub) 35%, var(--color-bg)));
}

/* 店舗カード間・最終行下の罫線 */
.store-list--hino {
  --store-card-border-color: var(--color-store-hino);
}

.store-list--hachioji {
  --store-card-border-color: var(--color-store-hachioji);
}

.store-list--other {
  --store-card-border-color: var(--color-store-other);
}

.store-card .store-card__name {
  flex: 0 0 180px;
  margin: 0;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.store-card__info {
  flex: 0 1 308px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-card .store-card__address,
.store-card .store-card__tel,
.store-card .store-card__access {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.store-card__actions {
  flex: 0 0 148px;
  display: flex;
  gap: 16px;
}

.store-btn {
  justify-content: center;
  width: auto;
  gap: 6px;
  min-width: 148px;
  padding: 14px 18px;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-align: center;
}

/* 電話するボタン: PC非表示 */
.store-btn--tel {
  display: none;
}

/* ==========================================================================
   SP(max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .store-panel .store-panel__lead {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 32px;
  }

  .store-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 12px;
    margin-bottom: 40px;
  }

  .store-switch__item {
    display: block;
    min-width: 0;
    max-width: none;
  }

  .store-switch__btn {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 12px 18px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  /* その他地域 */
  .store-switch__item--other {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .store-switch__item--other .store-switch__btn {
    width: calc((100% - 16px) / 2);
    flex-shrink: 0;
  }

  .store-switch__item--other .store-switch__sublabel {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .store-area {
    margin-top: 100px;
  }

  .store-area__title {
    font-size: 1.25rem;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }

  .store-area .store-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding-block: 24px;
  }

  .store-card .store-card__name {
    flex-basis: auto;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  .store-card__info {
    flex: 1 1 auto;
  }

  .store-card .store-card__address,
  .store-card .store-card__tel,
  .store-card .store-card__access {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .store-card__actions {
    flex: 0 0 100%;
    margin-left: 0;
  }

  .store-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 8px;
  }

  .store-btn--tel {
    display: inline-flex;
  }
}
