@charset 'UTF-8';

.floating-banner {
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 30;
  max-width: 320px;
  width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  > .close-button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #e1a325;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
  }
}

.floating-banner a {
  display: block;
}
.floating-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ffffff;
}

.floating-banner.is-hidden {
  display: none;
}

.hero__text-en {
  bottom: 180px;
}
.service-top__img img {
  height: auto;
}

.blog-category-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  border-bottom: 1px solid #666;
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.blog-category-filter__current {
  margin: 0;
  color: #e1a325;
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.blog-category-filter__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 7px 15px;
  color: rgba(0, 0, 0, 0.87);
  background-color: #fff;
  border: 1px solid #979797;
  border-radius: 100px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.blog-category-filter__button:hover,
.blog-category-filter__button:focus-visible {
  color: #e1a325;
  border-color: #e1a325;
}

.blog-category-filter__button:focus-visible,
.blog-category-dialog__close:focus-visible,
.blog-category-dialog__link:focus-visible {
  outline: 2px solid #e1a325;
  outline-offset: 3px;
}

.blog-category-filter__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: #fff;
  stroke: #e1a325;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.blog-category-dialog {
  box-sizing: border-box;
  width: min(785px, calc(100% - 32px));
  max-width: 785px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 40px;
  overflow-y: auto;
  background-color: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-category-dialog.is-open {
  opacity: 1;
}

.blog-category-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-category-dialog.is-open::backdrop {
  opacity: 1;
}

.blog-category-dialog__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-category-dialog__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.blog-category-dialog__close::before,
.blog-category-dialog__close::after {
  position: absolute;
  top: 7px;
  left: 0;
  width: 17px;
  height: 2px;
  background-color: #666;
  border-radius: 2px;
  content: "";
}

.blog-category-dialog__close::before {
  transform: rotate(45deg);
}

.blog-category-dialog__close::after {
  transform: rotate(-45deg);
}

.blog-category-dialog__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 25px;
}

.blog-category-dialog__link {
  display: block;
  padding: 16px 0;
  color: rgba(0, 0, 0, 0.87);
  border-bottom: 1px solid #d9d9d9;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.blog-category-dialog__link:hover,
.blog-category-dialog__link.is-current {
  color: #e1a325;
  font-weight: 700;
}

body.is-blog-category-dialog-open {
  overflow: hidden;
}

.list-news__info.add-blog {
  justify-content: flex-start;
  gap: 8px;
}

.list-news__info.add-blog .list-news__category span {
  border: none;
  background: linear-gradient(transparent 50%, #ffff00 50%);
  border-radius:0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0;
}
.article-detail__sub-heading {
    flex-wrap: wrap;
}

@media screen and (max-width: 767px) {
  .floating-banner {
    display: none;
  }
  .hero__text-en {
    bottom: 80px;
  }

  .blog-category-dialog {
    padding: 56px 24px 24px;
  }

  .blog-category-dialog__list {
    grid-template-columns: 1fr;
  }

  .blog-category-dialog__link {
    min-height: auto;
    padding: 16px 0;
  }
  .list-news__info.add-blog {
  justify-content: space-between;
  gap: 0px;
}
  .list-news__info.add-blog .list-news__category span {
  border: none;
  padding: 0;
  max-width: 150px;
}
}