@charset "UTF-8";
/* main をフレックス化（共通） */
main {
  display: flex;
  flex-direction: column;
}

/* =========================
   PC（lg以上）
========================= */
@media (min-width: 992px) {

  main {
    position: relative;
  }

  .haikei-wrapper {
    position: absolute;
    top: 5px;
    right: 15px;
    bottom: 5px;
    flex-direction: column; /*キャプションの縦並び*/
    display: flex;
    align-items: bottom;
    justify-content: flex-end;

    z-index: 1;
    pointer-events: none;
  }

  .haikei-img {
    max-height: 95%;
    width: auto;
    height: auto;
  }

  .card {
    position: relative;
    z-index: 2;
  }
}

/* =========================
   スマホ・タブレット
========================= */
@media (max-width: 991.98px) {

  .haikei-wrapper {
    order: 2;
    position: static;

    /* カードと同じ横幅にする */
    padding-left: 0.75rem;
    padding-right: 0.75rem;

    margin-top: 2rem;
  }

  .haikei-img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* 共通（PC / スマホ両方） */
.haikei-img {
  opacity: 0.7;          /* 薄さ（0.2〜0.5で調整） */
  mix-blend-mode: multiply;	
}
.haikei-caption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}