
.favorite_button {
  display: flex;
  justify-content: flex-end; /* フレックスコンテナ内の中身を右端に寄せる */
  align-items: center; /*子要素（アイコンやテキストなど）を縦方向で中央に揃える*/
  gap: 6px;
  font-size: 18px;
  color: #333;
  background: transparent;
  border: none;
  cursor: pointer;
  width: calc(100% - 20px);
  border-bottom: 1px solid var(--color-palegrayline);
  margin-left: 20px;
  margin: 0px 0px 10px 20px;
  padding: 0px 10px 10px 0px;
  position: relative;
  top: 2px;
}
.favorite_button path
{
  fill: var(--color-white);
  stroke: var(--color-darkgray);
  stroke-width: 18px;
}
.favorite_button.active path
{
  fill: var(--color-star_skyblue);
  stroke: none;
}

.favorite_button:hover {
  opacity: 0.8;
}

.icon_wrapper img {
  width: 25px;
  height: 25px;
  display: block;
  margin-top: 20px;
  margin-bottom: 40px;
}

.text_wrapper {
  line-height: 1.2;
  font-size: 1rem;
  margin-top: -3px;
}
#SEARCH_RESULT .favorite_button
{
  border-bottom: unset;
}


#ESTATE_OVERVIEW .estate_name > div
{
  display: grid;
  grid-template-columns: auto auto;
  border-bottom: 1px solid var(--color-palegrayline);
  margin-bottom: 20px;
  padding: 0px 0px 10px 0px;
}
#ESTATE_OVERVIEW .favorite_button
{
  border-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0px;
  width: 100%;
  margin-left: 0px;
}
#ESTATE_OVERVIEW .text_wrapper
{
  margin-top: 0px;
  margin-bottom: 0px;
}
#ESTATE_OVERVIEW .icon_wrapper {
  margin-top: 0px;
}


@media screen and (max-width: 768px)
{
  .estate_tile, article:not(:first-child)
  {
    padding-top: 30px;
  }
  #ESTATE_OVERVIEW .estate_name > div
  {
    grid-template-columns: 1fr;
  }
  #ESTATE_OVERVIEW .estate_name > div > div
  {
    order: 2;
  }
  #ESTATE_OVERVIEW .estate_name > div > button
  {
    order: 1;
    margin-bottom: 10px;
  }
  .estate_container label
  {
    width: 100%;
  }
  .favorite_button
  {
    border-bottom: none;
    margin: 0px;
    padding: 0px 0px 4px 0px;
    width: 100%;
  }
  #ESTATE_OVERVIEW .favorite_button
  {
    margin-top: 5px;
    position: unset;
  }
  .icon_wrapper
  {
    margin-top: 0px;
  }
  .text_wrapper
  {
    margin-bottom: 0px;
    margin-top: -2px;
  }
}

@media (max-width: 480px) {

  .icon_wrapper img {
    width: 18px;
    height: 18px;
  }
}


