@charset "UTF-8";

/* === Accordion Main Container === */
.ds-exhibition {
  width: 100%; /* Max width constraint */
  margin: 0 auto;
  border-top: 1px solid #e0e0e0; /* Top border */
  color: #333;
  line-height: 1.6;
}

/* === Accordion Trigger Button (Region Name) === */
.accordion-trigger {
  width: 100%;
  background: #fff;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 25px 10px; /* Generous vertical padding */
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  color: #111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  outline: none;
}

.accordion-trigger:hover {
  background-color: #fafafa; /* Light gray on hover */
}

/* === Plus/Minus Icon Creation === */
.accordion-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
}

/* Common styles for horizontal and vertical bars */
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background-color: #333;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease; /* Animation speed */
}

/* Horizontal bar */
.accordion-icon::before {
  width: 16px;
  height: 2px;
}

/* Vertical bar */
.accordion-icon::after {
  width: 2px;
  height: 16px;
}

/* Icon change when open (rotate vertical bar to overlap horizontal = looks like minus) */
.accordion-trigger.is-active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0; /* Fade out effect (ds style) */
}

/* === Accordion Content Area === */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out; /* Smooth opening transition */
  border-bottom: 0; /* Prevent border overlap when closed */
}

/* Style when content is open */
.accordion-content.is-open {
  /* Works empty here as max-height is set by JS */
  border-bottom: 1px solid #e0e0e0; /* Show bottom border only when open */
}

/* === Store List Grid Layout === */
.store-grid {
  padding: 30px 15px; /* Padding inside open content */
  display: grid;
  gap: 30px; /* Gap between store items */
  
  /* Default: 2 columns for PC/Tablet */
  grid-template-columns: 1fr 1fr;
}

.store-item {
  margin-bottom: 10px;
}

.store-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.store-address {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  font-feature-settings: "palt"; /* Japanese font kerning adjustment */
}

/* "Available for Purchase" Badge (Reproduction) */
.store-badge {
  display: inline-block;
  font-size: 10px;
  background-color: #f0f0f0;
  color: #555;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 2px;
  vertical-align: middle;
  font-weight: normal;
}

/* === Responsive Settings (Breakpoint: 640px) === */
@media screen and (max-width: 640px) {
  .store-grid {
    /* Switch to 1 column on screens smaller than 640px */
    grid-template-columns: 1fr;
    gap: 20px; /* Slightly smaller gap for mobile */
    padding: 20px 10px;
  }
  
  .accordion-trigger {
    padding: 20px 5px; /* Adjust padding for mobile */
    font-size: 16px;   /* Slightly smaller font size */
  }
}