
/* ========== 検索結果表示 ========== */
#results {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #eee;
}

#results h3 {
  margin-bottom: 10px;
}

#resultsList {
  list-style: none;
  padding: 0;
}

#resultsList li {
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  gap: 20px; /* 各要素間のスペース */
}

#resultsList li:last-child {
  border-bottom: none;
}

#resultsList .year {
  width: 60px; /* 年度の幅 */
}

#resultsList .product {
  flex-grow: 1; /* 製品名が伸びるように */
}

#resultsList .date-region {
  width: 200px; /* 日付＋地域の幅 */
  color: #777;
  font-size: 0.9em;
}

.filters {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#summary {
  position: relative;
  margin: 30px 0;
  text-align: center;
}

#totalDisplay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  background: rgba(255,255,255,0.8);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 18px;
}

#resultsList {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

#resultsList li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

/* ========== 全体レイアウトの基本 ========== */
.layout-container {
display: flex;
flex-wrap: wrap;
gap: 0;
justify-content: space-between;
align-items: flex-start;
}

.work-filter {
flex: 0 0 30%;
}

.map-count-group {
flex: 0 0 70%;
display: flex;
gap: 16px;
align-items: flex-start;
position: relative;
}

.map-container {
position: relative;
z-index: 1;
flex: 1 1 auto;
padding-top: 5%;
}

.count-container {
  position: absolute;
  top: 20%;
  right: 20%;
  z-index: 2;
  width: 25%;
  text-align: center;
  pointer-events: none;
}
.count-container img {
width: 100%;
max-width: 200px;
height: auto;
}

@media screen and (max-width: 1024px) {
  .count-container {
    position: absolute;
    top: 25%;
    right: 0;
    z-index: 2;
    width: 25%;
    text-align: center;
    pointer-events: none;
  }
}


@media screen and (max-width: 768px) {
  .map-count-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .count-container {
    position: static;
    width: 30%;
    max-width: 200px; 
    margin: 0 auto 1rem; 
    pointer-events: auto;
    order: -1;
    text-align: center;
    padding-top: 5%;
  }

  .count-container img {
    width: 100%;
    height: auto;
    display: block;
  }

  .map-container {
    width: 100%;
    order: 0;
  }
}


#total-count {
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 5rem;
text-align: center;
font-weight: bold;
color: #fff;
letter-spacing: 0.05em;
z-index: 100;
}

.total-count-label {
  position: absolute;
  top: 65%; 
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
  letter-spacing: 0.1em;
  z-index: 100;
}

@media screen and (max-width: 1024px) {
  #total-count {
    top: 42.5%;
    font-size: 4vw;
    }
  .total-count-label { 
    font-size: 2vw;
  }
}


@media (max-width: 768px) {
.layout-container {
  flex-direction: column;
}

.work-filter,
.map-count-group {
  flex: 1 1 100%;
}

.map-count-group {
  flex-direction: column;
  position: relative;
}

.map-container{
  width: 100%;
}
.map-container img{
  width: 100%;
  text-align: center;
  margin-top: -10px;
}

.count-container {
  width: 100%;
}

.count-container {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
  width: 90%;
  margin-top: -20px;
}
#total-count {
  top: 50%;
  font-size: 10vw;
  }
.total-count-label {
  top: 65%;
  font-size: 5vw;
}
}

/* ========== select-wrapper（縦並び＋アイコン） ========== */
.select-wrapper {
position: relative;
border: 1px solid #ccc;
border-radius: 2px;
padding: 10px;
margin-bottom: 10px;
background-color: #fff;
}

.select-wrapper:last-child {
  border: none;
  background-color: var(--color-bgcolor);
  }


.select-wrapper select {
width: 100%;
border: none;
appearance: none;
background: transparent;
padding-right: 24px;
font-size: 1.4rem;
cursor: pointer;
transition: 0.3s;
}

.select-wrapper::after {
content: '';
display: block;
position: absolute;
top: 55%;
right: 12px;
width: 12px;
height: 12px;
background-image: url("/assets/img/ico_down.png");
background-size: contain;
background-repeat: no-repeat;
transform: translateY(-50%);
pointer-events: none;
}

.select-wrapper:last-child::after {
display: none;
}

.reset-button {
padding: 10px 20px;
font-size: 14px;
background-color: #ffe55d;
border: 1px solid #ccc;
cursor: pointer;
color: #333;
margin-left: -10px;
border-radius: 30px;
}

.reset-button:hover {
background-color: #333;
color: #fff;
transition: 0.3s;
opacity: 0.5;
}

.reset-button::selection {
  background-color: #ffe55d;
  color: #333;
  transition: 0.3s;
  opacity: 0.5;
  }
  

/* ========== work-list & headings ========== */
.work-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 20px;
padding-left: 0;
font-size: 1.4rem;
}


.work-list li {
width: 230px;
list-style: "- ";
margin:0 0 30px 10px;
}

.work-list li span {
display: inline;
padding-left: 7px;
}

.year-heading {
font-size: 2.2rem;
margin: 1rem auto 3rem;
color: #fff;
text-align: center;
background-color: #79C06E;
padding: 1% 0;
font-weight: 500;
letter-spacing:0.1em;
}

.product-heading {
margin: 0 auto 2%;
}

a.product-link{
font-size: 2rem;
text-decoration: none;
color: #009b4a;
font-weight: 400;
}

a.product-link::before {
content: "";
display: inline-block;
border-left: 3px solid var(--color-accent);
padding-left: 5px;
height: 20px;
transform: translateY(3px);
}

.work-list a{
color:inherit;
cursor: pointer;
transition: 0.3s;
color: #009b4a;

}

.work-list a::after{
content: "";
display: inline-block;
width: 1.2rem;
height: 1.2rem;
margin-left: 1rem;
background-image: url("/assets/img/ico_popup_hover.png");
background-size: contain;
background-repeat: no-repeat;
}

.work-list a:hover{
color: #333;
opacity: 0.5;
transition: 0.3s;
}

.work-list a:hover::after {
background-image: url("/assets/img/ico_popup.png");
opacity: 0.7;
transition: 0.3s;
}

@media (max-width: 767px) {
.work-list li {
 width: 155px;
}

a.product-link {
  font-size: 1.6rem;
}
}

/* アコーディオン */

.year-heading {
  position: relative;
  padding-right: 30px; 
}

.year-heading .accordion-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
