/*!
 * VILLAGE v0.0.3 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
 */
@charset "UTF-8";

/* ¯¯¯¯¯¯¯¯¯ *\
  CARD
\* ˍˍˍˍˍˍˍˍˍ */
.village-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--background-default-grey);

  --idle: transparent;
  --hover: var(--background-default-grey-hover);
  --active: var(--background-default-grey-active);
}

.village-card.village-enlarge-link .village-card__title a::after {
  --icon-size: 1.5rem;
  position: absolute;
  right: 2rem;
  bottom: 2rem;
}

.village-card:not(.village-card--no-border):not(.village-card--shadow) {
  background-size: 100% 1px, 1px 100%, 1px 100%, 100% 1px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 100% 100%, 0 0, 100% 0, 100% 0;
  padding: 1px;
  background-image: linear-gradient(0deg, var(--border-default-grey), var(--border-default-grey)), linear-gradient(0deg, var(--border-default-grey), var(--border-default-grey)), linear-gradient(0deg, var(--border-default-grey), var(--border-default-grey)), linear-gradient(0deg, var(--border-default-grey), var(--border-default-grey));
}

.village-card--no-icon .village-card__title a:not([target=_blank])::after,
.village-card:not(.village-enlarge-link):not(.village-card--download) .village-card__title a:not([target=_blank])::after {
  content: none;
}

.village-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  order: 2;
  padding: 0 2rem;
}

.village-grid-row .village-card {
  height: 100%;
}

.village-card__header {
  order: 1;
  position: relative;
  flex: 0 0 auto;
}

.village-card__header .village-badges-group {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem;
}

.village-card.village-enlarge-link:hover .village-card__img,
.village-card.village-enlarge-link:hover .village-card__vid {
  --brightness: calc(100% + var(--brighten) * 10%);
}

.village-card.village-enlarge-link:active .village-card__img,
.village-card.village-enlarge-link:active .village-card__vid {
  --brightness: calc(100% + var(--brighten) * 20%);
}

.village-card__img,
.village-card__vid {
  filter: brightness(var(--brightness));
}

.village-card__img img,
.village-card__img svg,
.village-card__vid iframe,
.village-card__vid video {
  aspect-ratio: 1.7777777778;
  object-fit: cover;
  object-position: 50% 50%;
}

.village-card__img img {
  display: block;
}

.village-card__content {
  order: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
  margin: 0 -2rem;
}

.village-card__title {
  order: 2;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-title-grey);
}

.village-card__title a::after {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/arrow-right-line.svg");
  mask-image: url("../../icons/system/arrow-right-line.svg");
  --icon-size: 1rem;
  content: "";
  margin-left: 0.5rem;
}

.village-card__title [target=_blank]::after {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/external-link-line.svg");
  mask-image: url("../../icons/system/external-link-line.svg");
  --icon-size: 1rem;
  content: "";
}

.village-card__desc {
  order: 3;
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.village-card__start {
  order: 1;
  margin-bottom: 0.25rem;
}

.village-card__start .village-badges-group,
.village-card__start .village-tags-group {
  margin-bottom: 0.25rem;
}

.village-card__start .village-card__detail {
  margin-bottom: 0.75rem;
}

.village-card__end {
  order: 4;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding-top: 0.5rem;
  height: 100%;
}

.village-card__detail {
  font-size: 0.75rem;
  line-height: 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 0;
  color: var(--text-mention-grey);
}

.village-card__detail[class^=village-icon-]::before,
.village-card__detail[class*=" village-icon-"]::before,
.village-card__detail[class^=village-fi-]::before,
.village-card__detail[class*=" village-fi-"]::before {
  --icon-size: 1rem;
  margin-right: 0.5rem;
}

.village-card.village-enlarge-link:not(.village-card--no-icon) .village-card__end {
  margin-bottom: -3rem;
  min-height: 2rem;
  padding-right: 2rem;
  justify-content: flex-end;
}

.village-card.village-enlarge-link:not(.village-card--no-icon) .village-card__content {
  padding-bottom: 5rem;
}

.village-card__footer {
  order: 2;
  padding: 0.5rem 2rem 2rem;
  margin: 0 -2rem;
}

.village-card__footer .village-btns-group,
.village-card__footer .village-links-group {
  margin-bottom: -1rem;
}

.village-card--sm .village-card__header .village-badge {
  font-size: 0.75rem;
  line-height: 1.25rem;
  min-height: 1.125rem;
  padding: 0 0.375rem;
}

.village-card--sm .village-card__header .village-badge::before,
.village-card--sm .village-card__header .village-badge::after {
  --icon-size: 0.75rem;
}

.village-card--sm .village-card__header .village-tag {
  font-size: 0.75rem;
  line-height: 1.25rem;
  min-height: 1.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
}

.village-card--sm .village-card__header .village-tag::before,
.village-card--sm .village-card__header .village-tag::after {
  --icon-size: 0.75rem;
}

.village-card--sm .village-card__content {
  padding: 1.5rem;
}

.village-card--sm .village-card__content .village-badge {
  font-size: 0.75rem;
  line-height: 1.25rem;
  min-height: 1.125rem;
  padding: 0 0.375rem;
}

.village-card--sm .village-card__content .village-badge::before,
.village-card--sm .village-card__content .village-badge::after {
  --icon-size: 0.75rem;
}

.village-card--sm .village-card__content .village-tag {
  font-size: 0.75rem;
  line-height: 1.25rem;
  min-height: 1.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
}

.village-card--sm .village-card__content .village-tag::before,
.village-card--sm .village-card__content .village-tag::after {
  --icon-size: 0.75rem;
}

.village-card--sm .village-card__title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.village-card--sm .village-card__title a::after {
  --icon-size: 1rem;
}

.village-card--sm .village-card__desc {
  margin-top: 0.5rem;
}

.village-card--sm .village-card__start .village-badges-group,
.village-card--sm .village-card__start .village-tags-group {
  margin-bottom: 0;
}

.village-card--sm .village-card__start .village-card__detail {
  margin-bottom: 0.5rem;
}

.village-card--sm .village-card__end {
  margin-top: 0.75rem;
  padding-top: 0.25rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.village-card--sm.village-enlarge-link:not(.village-card--no-icon) .village-card__end {
  margin-bottom: -2rem;
  min-height: 1.25rem;
  padding-right: 1.5rem;
}

.village-card--sm.village-enlarge-link:not(.village-card--no-icon) .village-card__content {
  padding-bottom: 3.5rem;
}

.village-card--sm.village-enlarge-link:not(.village-card--no-icon) .village-card__title a::after {
  --icon-size: 1rem;
  right: 1.5rem;
  bottom: 1.5rem;
}

.village-card--sm .village-card__footer {
  padding: 0.5rem 1.5rem 1.5rem;
}

.village-card--lg .village-card__content {
  padding: 2.5rem;
}

.village-card--lg .village-card__title {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.75rem;
}

.village-card--lg .village-card__title a::after {
  --icon-size: 1.5rem;
}

.village-card--lg .village-card__desc {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 1rem;
}

.village-card--lg .village-card__start {
  margin-bottom: 0.5rem;
}

.village-card--lg .village-card__start .village-badges-group,
.village-card--lg .village-card__start .village-tags-group {
  margin-bottom: 0.5rem;
}

.village-card--lg .village-card__start .village-card__detail {
  margin-bottom: 1rem;
}

.village-card--lg.village-enlarge-link:not(.village-card--no-icon) .village-card__end {
  margin-bottom: -4rem;
  min-height: 2.5rem;
  padding-right: 2.5rem;
}

.village-card--lg.village-enlarge-link:not(.village-card--no-icon) .village-card__content {
  padding-bottom: 6.5rem;
}

.village-card--lg.village-enlarge-link:not(.village-card--no-icon) .village-card__title a::after {
  --icon-size: 2rem;
  right: 2.5rem;
  bottom: 2.5rem;
}

.village-card--lg .village-card__footer {
  padding: 0.5rem 2.5rem 2.5rem;
}

.village-card--download .village-card__header {
  aspect-ratio: 16/9;
}

.village-card--download .village-card__header .village-card__img {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
}

.village-card--download .village-card__header .village-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.village-card--download .village-card__title a::after {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: calc((0.75em - var(--icon-size)) * 0.5);
  background-color: currentColor;
  width: var(--icon-size);
  height: var(--icon-size);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: url("../../icons/system/download-line.svg");
  mask-image: url("../../icons/system/download-line.svg");
  content: "";
}

.village-card__body > .village-card__detail,
.village-card__body > .village-card__title {
  margin-top: 2rem;
}

.village-card__body > .village-card__detail {
  margin-bottom: -1rem;
}

.village-card__body > .village-card__desc,
.village-card__body > .village-card__title {
  margin-bottom: 2rem;
}

.village-card__body > .village-card__desc {
  margin-top: -1rem;
}

.village-card.village-enlarge-link:not(.village-card--no-arrow) .village-card__body > .village-card__desc,
.village-card.village-enlarge-link:not(.village-card--no-arrow) .village-card__body > .village-card__title {
  margin-bottom: 4.5rem;
}

.village-card.village-enlarge-link:not(.village-card--no-arrow) .village-card__body > .village-card__desc {
  margin-top: -3.5rem;
}

.village-card--grey {
  background-color: var(--background-contrast-grey);

  --idle: transparent;
  --hover: var(--background-contrast-grey-hover);
  --active: var(--background-contrast-grey-active);
}

.village-card--shadow {
  z-index: calc(var(--ground) + 500);
  background-color: var(--background-raised-grey);

  --idle: transparent;
  --hover: var(--background-raised-grey-hover);
  --active: var(--background-raised-grey-active);
  filter: drop-shadow(var(--raised-shadow));
}

.village-card--shadow.village-card--grey {
  background-color: var(--background-contrast-raised-grey);

  --idle: transparent;
  --hover: var(--background-contrast-raised-grey-hover);
  --active: var(--background-contrast-raised-grey-active);
}

.village-card--no-background {
  background-color: transparent;

  --hover: inherit;
  --active: inherit;
}

.village-card--download:not(.village-card--no-background) .village-card__header {
  background-color: var(--background-alt-grey);

  --idle: transparent;
  --hover: var(--background-alt-grey-hover);
  --active: var(--background-alt-grey-active);
}

.village-card__title a[href] {
  color: var(--text-action-high-village-primary);
}

.village-card__title:disabled,
a.village-card__title:not([href]) {
  color: var(--text-disabled-grey);
  background-color: var(--background-disabled-grey);

  --idle: transparent;
  --hover: var(--background-disabled-grey-hover);
  --active: var(--background-disabled-grey-active);
}
@media (min-width: 36em) {
  /*! media sm */

  /*! media sm */
}
@media (min-width: 48em) {
  /*! media md */
  .village-card__title {
    font-size: 1.375rem;
    line-height: 1.75rem;
  }

  .village-card--sm .village-card__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .village-card--lg .village-card__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .village-card--horizontal,
  .village-card--horizontal-half,
  .village-card--horizontal-tier {
    flex-direction: row;
  }

  .village-card--horizontal .village-card__img,
  .village-card--horizontal-half .village-card__img,
  .village-card--horizontal-tier .village-card__img {
    height: 100%;
  }

  .village-card--horizontal .village-card__img img,
  .village-card--horizontal-half .village-card__img img,
  .village-card--horizontal-tier .village-card__img img {
    height: 100%;
    object-fit: cover;
  }

  .village-card--horizontal .village-card__header {
    width: 40%;
    flex: 0 0 40%;
  }

  .village-card--horizontal-half .village-card__header {
    width: 50%;
    flex: 0 0 50%;
  }

  .village-card--horizontal-tier .village-card__header {
    width: 33.3333333333%;
    flex: 0 0 33.3333333333%;
  }

  .village-card--download {
    flex-direction: row;
  }

  .village-card--download .village-card__header {
    width: 40%;
    flex: 0 0 40%;
    aspect-ratio: auto;
  }

  .village-card--download .village-card__header .village-card__img img {
    object-position: 50% 0;
  }

  .village-card--download .village-card__img {
    height: 100%;
  }

  .village-card--download .village-card__img img {
    height: 100%;
    object-fit: cover;
  }

  /*! media md */
}
@media (min-width: 62em) {
  /*! media lg */

  /*! media lg */
}
@media (min-width: 78em) {
  /*! media xl */

  /*! media xl */
}
@media (hover: hover) and (pointer: fine) {
  .village-card--download.village-enlarge-link:hover .village-card__header {
    background-color: var(--hover);
  }

  .village-card--download.village-enlarge-link:active .village-card__header {
    background-color: var(--active);
  }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .village-card--no-icon::after {
    content: none;
  }

  .village-card__title,
  .village-card__desc {
    flex: 1 0 auto;
  }

  .village-card__title a::after {
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/arrow-right-line.svg");
    width: 1rem;
    height: 1rem;
    background-color: transparent;
  }

  .village-card__title [target=_blank]::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/external-link-line.svg");
    width: 1rem;
    height: 1rem;
  }

  .village-card__detail::before {
    width: 1rem;
    height: 1rem;
  }

  .village-card--download .village-tile__title a::after {
    background-color: transparent;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("../../icons/system/download-line.svg");
  }

  .village-card--download .village-card__header {
    padding-top: 56.25%;
  }

  .village-card--download .village-card__header .village-card__img img {
    height: auto !important;
    width: auto;
    margin: auto;
  }

  .village-card.village-enlarge-link .village-card__title a {
    text-decoration: none;
  }

  .village-card.village-enlarge-link .village-card__title a::after {
    width: 1.5rem;
    height: 1.5rem;
    background-color: transparent;
  }

  .village-card--sm.village-enlarge-link .village-card__title a::after {
    width: 1rem;
    height: 1rem;
  }

  .village-card--sm .village-card__title a::after {
    width: 1rem;
    height: 1rem;
  }

  .village-card--lg.village-enlarge-link .village-card__title a::after {
    width: 2rem;
    height: 2rem;
  }

  .village-card--lg .village-card__title a::after {
    width: 1.5rem;
    height: 1.5rem;
  }

  .village-card > .village-card__img {
    flex-shrink: 0;
  }

  .village-card {
    background-color: #fff;
  }

  .village-card:not(.village-card--no-border):not(.village-card--shadow) {
    background-image: linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd);
  }

  .village-card--grey {
    background-color: #eee;
  }

  .village-card--shadow {
    z-index: 500;
    background-color: #fff;
  }

  .village-card--shadow.village-card--grey {
    background-color: #eee;
  }

  .village-card--no-background {
    background-color: transparent;
  }

  .village-card--no-background:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-card--no-background:active {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .village-card--download:not(.village-card--no-background) .village-card__header {
    background-color: #f6f6f6;
  }

  .village-card__detail {
    color: #666;
  }

  .village-card__title {
    color: #161616;
  }

  .village-card__title a[href] {
    color: hsl(180, 75%, 25%);
  }

  .village-card__title:disabled,
  a.village-card__title:not([href]) {
    color: #929292;
    background-color: #e5e5e5;
  }
}
@media (-ms-high-contrast: none) and (min-width: 48em), (-ms-high-contrast: active) and (min-width: 48em) {
  .village-card--download .village-card__header {
    padding-top: 0;
  }

  .village-card--download .village-card__body,
  .village-card--horizontal .village-card__body,
  .village-card--horizontal-half .village-card__body,
  .village-card--horizontal-tier .village-card__body {
    flex-basis: 100%;
  }
}
@media print {
  .village-card {
    background-color: #fff;
  }

  .village-card:not(.village-card--no-border):not(.village-card--shadow) {
    background-image: linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd);
  }

  .village-card--grey {
    background-color: #eee;
  }

  .village-card--shadow {
    background-color: #fff;
  }

  .village-card--shadow.village-card--grey {
    background-color: #eee;
  }

  .village-card--download:not(.village-card--no-background) .village-card__header {
    background-color: #f6f6f6;
  }

  .village-card__detail {
    color: #666;
    line-height: 1rem !important;
  }

  .village-card__title {
    color: #161616;
  }

  .village-card__title a[href] {
    color: hsl(180, 75%, 25%);
  }

  .village-card__title:disabled,
  a.village-card__title:not([href]) {
    color: #929292;
    background-color: #e5e5e5;
  }

  .village-card__detail,
  .village-card__desc {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}
@media print and (-ms-high-contrast: none), print and (-ms-high-contrast: active) {
  .village-card--shadow {
    z-index: 500;
  }

  .village-card--no-background {
    background-color: transparent;
  }

  .village-card--no-background:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .village-card--no-background:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
}
