/*-----------------------------
/* Custom css
-----------------------------*/
/* footer */
.footer .inner {
  width: auto;
  max-width: 800px;
}

/* hero */
.home .mv {
  height: 80vh;
}

.home .mv .catch {
  background: none;
  text-indent: 0;
}

.home .mv .catch p {
  color: white;
  padding: 15px 10px 10px;
  font-size: 1.5vw;
}

.home .mv .catch p span {
  font-size: 1.9vw;
  font-weight: 500;
  display: block;
  padding-top: 5px;
}

.home .mv .catch .catch__wrap {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 45%;
}

@media only screen and (max-width: 769px) {
  .home .mv .catch .catch__wrap {
    width: 100%;
    top: auto;
    bottom: 0;
    transform: translateY(0);
  }
  .home .mv .catch p {
    font-size: 3.3vw;
    padding-right: 0;
    padding-left: 5px;
  }
  .home .mv .catch p span {
    font-size: 4.3vw;
  }
}

/* news */
.home .news .wrap {
  align-items: flex-start;
}

.home .news .item dd {
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.home .news .more {
  text-align: right;
}

@media only screen and (max-width: 769px) {
  .home .news .more {
    width: auto;
    margin-top: 10px;
  }
}

/* page */
.pg.common {
  padding-bottom: 100px;
}

.pg.common .pghead {
  padding: 100px 50px 30px;
}

.pg.common .pghead h1 {
  font-size: 32px;
}

.pg.common .box {
  padding-inline: 50px;
}

.pg.common .box p.wp-block-paragraph {
  margin: 1rem 0;
}

.pg.common .box p.wp-block-paragraph a {
  color: #333;
}

.pg.common .box h2.wp-block-heading,
.pg.common .box h3.wp-block-heading {
  margin: 2rem 0 1rem;
}

.pg.common .box ul.wp-block-list {
  list-style: disc !important;
  margin: 1rem 0;
  padding-left: 40px;
}

.pg.common .box ul.wp-block-list li {
  list-style: disc !important;
}

.pg.common .box ol.wp-block-list {
  list-style: auto !important;
  margin: 1rem 0;
  padding-left: 40px;
}

.pg.common .box ol.wp-block-list li {
  list-style: auto !important;
  line-height: 1.8;
}

@media only screen and (max-width: 820px) {
  .pg.common .pghead {
    padding: 150px 5% 50px;
  }
  .pg.common .box {
    padding-inline: 5%;
  }
}

@media only screen and (max-width: 767px) {
  .pg.common .pghead {
    padding-block: 100px 20px;
  }

  .pg.common .pghead h1 {
    font-size: 26px;
  }

  .pg.common .box h2.wp-block-heading {
    font-size: 20px;
  }
}

/* mend-news single */
.pg.common .box h4.wp-block-heading {
  margin: 1.5rem 0 1rem;
}

.pg.common .box .article__body a {
  color: #63111f;
  text-decoration: underline;
}

.pg.common .box .article__body img {
  max-width: 100%;
  height: auto;
  width: auto;
}

.pg.common .box .article__thumb {
  margin-bottom: 30px;
}

.pg.common .box .article__thumb img {
  width: 100%;
  height: auto;
}

.pg.common .box .article__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.pg.common .box .article__date {
  font-size: 14px;
  color: #666;
}

.pg.common .box .article__cat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg.common .box .article__cat a {
  display: inline-block;
  padding: 3px 14px;
  border: 1px solid #63111f;
  border-radius: 5px;
  font-size: 12px;
  color: #63111f;
  text-decoration: none;
}

.pg.common .box .article__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}

.pg.common .box .article__nav-prev,
.pg.common .box .article__nav-next {
  width: 50%;
}

.pg.common .box .article__nav-next {
  margin-left: auto;
  text-align: right;
}

.pg.common .box .article__nav a {
  color: #63111f;
}

.pg.common .box .related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #ddd;
}

.pg.common .box .related h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

@media only screen and (max-width: 767px) {
  .article__nav {
    font-size: 14px;
  }
}

.pg.common .box .pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pg.common .box .pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #63111f;
  text-decoration: none;
  font-size: 14px;
}

.pg.common .box .pager .page-numbers.current {
  background: #63111f;
  border-color: #63111f;
  color: #fff;
}

.pg.common .box .pager .page-numbers.dots {
  border: none;
}

.pg.common .box .back a {
  color: #63111f;
}

.mend-news-single .pghead h1,
.mend-news-archive .pghead h1 {
  font-family: "Noto Sans JP", sans-serif;
}

/* event popup */
.event-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 260px;
  max-width: calc(100% - 40px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(100%);
  animation: eventPopupSlideIn 0.6s ease 0.3s forwards;
}

@keyframes eventPopupSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.event-popup__close img {
  width: 100%;
  height: 100%;
  display: block;
}

.event-popup__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-popup__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 260 / 146;
  object-fit: cover;
  display: block;
}

.event-popup__title {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: bold;
  color: #333;
}

@media only screen and (max-width: 769px) {
  .event-popup {
    left: 10px;
    bottom: 10px;
    width: 220px;
  }
}
