.archive-shop-areas {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.archive-shop-area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
}

.archive-shop-area-item {
  display: flex;
}
.archive-shop-area-item__link {
  font-weight: bold;
  font-size: 1.75rem;
  color: white;
  background-color: #f61ffd;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-width: 150px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.archive-shop-area-item__link:hover {
  background-color: #d50dc0;
  color: #fff;
  transform: translateY(-2px);
}

.archive-shop-area-toggle-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 2rem !important;
}
@media (max-width: 768px) {

  .archive-shop-area-list {
  grid-template-columns: repeat(2, 1fr);
}

  .archive-shop-area-toggle-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.5rem;
    padding-right: 0.5rem;
  }
}
.archive-shop-area-toggle-buttons > *:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
  border-left: 1px solid #ccc;
}
@media (max-width: 768px) {
  .archive-shop-area-toggle-buttons > *:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}
.archive-shop-area-toggle-buttons > *:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
@media (max-width: 768px) {
  .archive-shop-area-toggle-buttons > *:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}
.archive-shop-area-toggle-buttons__item {
  display: flex;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  overflow: hidden;
}
@media (max-width: 768px) {
  .archive-shop-area-toggle-buttons__item {
    width: 100%;
  }
}
.archive-shop-area-toggle-buttons__text, .archive-shop-area-toggle-buttons__link {
  font-weight: bold;
  font-size: 1.125rem;
  color: #878787;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  width: 100%;
}
.archive-shop-area-toggle-buttons__link {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.archive-shop-area-toggle-buttons__link:hover {
  color: #fff;
  background-color: #aaa;
}
.archive-shop-area-toggle-buttons__text {
  background-color: #aaa;
  color: #fff;
}

.archive-shop-detail-areas {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  width: 100%;
}
.archive-shop-detail-areas__title {
  font-size: 1.125rem;
  font-weight: bold;
  color: white !important;
  background-color: #666666;
  margin: 0 !important;
  width: 100%;
  padding: 0.5rem;
  text-align: center;
  letter-spacing: 0.1rem;
}

.archive-shop-detail-area-list {
  background-color: #e6e6e6;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  padding: 1rem 3rem;
  width: 100%;
}

.archive-shop-detail-area-item {
  display: flex;
}
.archive-shop-detail-area-item__link {
  background-color: #fff;
  color: #3f6efc !important;
  border-radius: 0.25rem;
  letter-spacing: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
  font-weight: bold;
}
.archive-shop-detail-area-item__link:hover {
  box-shadow: none;
  transform: translateY(1px);
}

.archive-shop-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .archive-shop-list__header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0.5rem;
  }
}
.archive-shop-list__title {
  color: #f22b87;
  font-size: 1.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  .archive-shop-list__title {
    font-size: 1.5rem;
  }
}
.archive-shop-list__title svg {
  width: 36px;
  height: 36px;
  fill: #f22b87;
}
@media (max-width: 768px) {
  .archive-shop-list__title svg {
    width: 28px;
    height: 28px;
  }
}
.archive-shop-list__title span {
  color: #f22b87 !important;
}
.archive-shop-list__change-button {
  background-color: #666666;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
@media (max-width: 768px) {
  .archive-shop-list__change-button {
    align-self: flex-end;
    padding: 0.25rem 1rem;
  }
}
.archive-shop-list__change-button:hover {
  background-color: #555555;
}

.archive-shop-list-filters {
  display: flex;
  border: 1px solid #ccc;
  padding: 1rem 2rem;
  justify-content: space-between;
  list-style: none;
  margin-bottom: 2rem !important;
}
@media (max-width: 768px) {
  .archive-shop-list-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.75rem;
  }
}

.archive-shop-list-filter-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
@media (max-width: 768px) {
  .archive-shop-list-filter-item {
    justify-content: flex-start;
  }
}
.archive-shop-list-filter-item__link {
  color: #333;
  font-weight: normal;
  transition: color 0.3s ease;
}
.archive-shop-list-filter-item__link:hover {
  color: #f22b87 !important;
}
.archive-shop-list-filter-item__link.is-active {
  color: #f22b87 !important;
  font-weight: bold;
  cursor: default;
  pointer-events: none;
}
.archive-shop-list-filter-item::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("../images/arrow-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.archive-shop-list-shops {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.area-change-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.area-change-modal.is-open {
  display: block;
}
.area-change-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.area-change-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.area-change-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}
.area-change-modal__title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}
.area-change-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.area-change-modal__close:hover {
  background-color: #f0f0f0;
}
.area-change-modal__body {
  padding: 1.5rem;
}
.area-change-modal__area-group {
  margin-bottom: 2rem;
}
.area-change-modal__area-group:last-child {
  margin-bottom: 0;
}
.area-change-modal__area-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #f22b87;
  margin: 0 0 1rem 0 !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f22b87;
}
.area-change-modal__subarea-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-change-modal__subarea-item {
  margin: 0;
}
.area-change-modal__link {
  display: block;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  color: #333;
  border-radius: 0.25rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}
.area-change-modal__link:hover {
  background-color: #f22b87;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(242, 43, 135, 0.3);
}

.archive-shop-list-shops {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}
@media (max-width: 900px) {
  .archive-shop-list-shops {
    padding: 0 1rem;
  }
}
@media (max-width: 600px) {
  .archive-shop-list-shops {
    padding: 0 0.5rem;
    gap: 1rem;
  }
}

.archive-shop-list-shops-item {
  display: flex;
}
.archive-shop-list-shops-item__link {
  padding: 2rem;
  background-color: #fff;
  border-radius: 0.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
  color: #333;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.archive-shop-list-shops-item__link:hover {
  color: #333;
  background-color: #f0f0f0;
}
@media (max-width: 600px) {
  .archive-shop-list-shops-item__link {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (min-width: 1151px) and (max-width: 1250px) {
  .archive-shop-list-shops-item__link {
    gap: 1rem;
  }
}
.archive-shop-list-shops-item__inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-grow: 1;
}
@media (max-width: 900px) {
  .archive-shop-list-shops-item__inner {
    flex-direction: column;
    gap: 1rem;
  }
}
@media (min-width: 1024px) and (max-width: 1150px) {
  .archive-shop-list-shops-item__inner {
    flex-direction: column;
  }
}
.archive-shop-list-shops-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.archive-shop-list-shops-item__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  height: 40px;
  display: flex;
  align-items: center;
  margin: 0 !important;
}
.archive-shop-list-shops-item__image {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}
.archive-shop-list-shops-item__image-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 200px;
}
.archive-shop-list-shops-item__area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.archive-shop-list-shops-item__area-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #333;
  margin: 0 !important;
  line-height: 1.2;
}
.archive-shop-list-shops-item__area-name {
  font-size: 1rem;
  color: #666;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
}
.archive-shop-list-shops-item__meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  width: 250px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .archive-shop-list-shops-item__meta {
    margin-top: 0;
  }
}
@media (min-width: 1151px) and (max-width: 1250px) {
  .archive-shop-list-shops-item__meta {
    width: 200px;
  }
}
.archive-shop-list-shops-item__budget {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: #333;
  gap: 0.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.archive-shop-list-shops-item__budget > * {
  margin-bottom: 0 !important;
}
.archive-shop-list-shops-item__tel, .archive-shop-list-shops-item__hours {
  font-size: 1rem;
  color: #333;
  display: flex;
  gap: 0.5rem;
  align-self: center;
  justify-content: flex-start;
  width: 100%;
}
.archive-shop-list-shops-item__tel svg, .archive-shop-list-shops-item__hours svg {
  width: 28px;
  height: 28px;
}
.archive-shop-list-shops-item__chart {
  flex-shrink: 0;
}